[SDL-1.3] RenderTargets under Windows

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[SDL-1.3] RenderTargets under Windows

Michi Hostettler

i've probably found the bug why sdl rendertargets
don't work under windows. if you look at SDL_wingl.c,
WIN_GL_UnlockRenderTarget, the bug is if not
(target->texture) then wglMakeCurrent(GL_hdc, GL_hrc)
is NEVER called, and the buffer is not unbound.

solution: take the call to wglMakeCurrent(GL_hdc,
GL_hrc) out of the if-block.

(ive got another problem with shadowmaps, but it
really seems to be my apps problem)



Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

SDL mailing list
[hidden email]