Fullscreen/Windowed Toggle?

Hi!

I’m using SDL, and trying to do a window/fullscreen toggle, using
OpenGL.

I convert from a 640x480 window to 640x480 fullscreen. This works
fine once I regenerate my textures.

When I convert from 640x480 fullscreen to 640x480 window, the screen
goes back to it’s native resolution, but is black. It’s not hung,
but I’m not getting anything to draw.

I’m using Mac OS X and my version of SDL is probably a bit old (a
month or two), but I haven’t seen anything talking about this in the
newsgroups.

Thanks!
-Ryan Martell

I’m using Mac OS X and my version of SDL is probably a bit old (a
month or two), but I haven’t seen anything talking about this in the
newsgroups.

(If you’re using the trunk of the Subversion repository, all bets are
off, since the video subsystem is being upgraded. Try the 1.2 branch.)

–ryan.