[SDL] SDL OpenGL won't maximize properly

Tron Thomas tron.thomas at verizon.net
Tue Feb 6 10:53:14 PST 2007


=?UTF-8?Q? Kuon_-_Nicolas_Goy_-_=E6=99=82=E6=9C=9F=E7=B2=BE?=  =?UTF-8?Q?
=E9=9C=8A_=28Goyman.com_SA=29 ?= <kuon <at> goyman.com> writes:

> 
> When you resize the window, you must call SDL_SetVideoMode again. And  
> you must recreate your opengl context.
> 
> I know this is true for switching to full screen, but I'm not 100%  
> sure for windowed opengl resize, can someone confirm?
> 
> Regards

I tried calling SDL_SetVideoMode during resize, and I was able to get things
to work more or less.  The window would not draw while resizing was taking
place.  Also, once I maximized the window, I could not restore the window
back to its original dimensions by clicking on the maximize button again.

Other than that the application appears to render correct for the size of the
window.




More information about the SDL mailing list