hi,
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)
/FilE___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de