[SDL] SDL 2.0: Evaluating API Usability (Long)
Ryan C. Gordon
icculus at icculus.org
Tue Mar 11 03:41:56 PDT 2008
> I'm not sure if they've fixed this, but when you call SDL_SetVideoMode
> more than once (on Windows at least), and you have an OpenGL context
> on it, the opengl context is lost (along with textures, shaders etc
> you have stored in the context). This is annoying, because AFAIK it is
> possible under Windows to resize a window without destroying the
> context.
(Not to hijack the thread, but...)
Here's a patch to fix that. It's not an API issue. If people could play
with that and let me know if it causes any problems, I'll commit it to
Subversion.
--ryan.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SDL-wingl-no-rebuild-context-on-resize.diff
Url: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080311/ed66a4dc/attachment.diff
More information about the SDL
mailing list