[SDL] Beginner question: can't enter to fullscreen mode

Petri Latvala petri.latvala at realityescape.net
Sun Jun 26 17:59:20 PDT 2005

On Mon, Jun 27, 2005 at 10:27:21AM +1000, Aaron C. wrote:
> Going off-topic for a moment,
> >The correct and always working way to switch to fullscreen is to call
> >SDL_SetVideoMode again with SDL_FULLSCREEN in the flags. It will
> >destroy the OpenGL context, though, so you have to reload textures and
> >display lists.
> Under what circumstances will the OGL context be destroyed? Always? I 
> have a perfectly working (as far as I can tell.. :-)) piece of code that 
> will:	
>  1) Set video mode,
>  2) Reset and recalculate viewport & perspective,
> and nothing else. I can call this as many times as I like, yet my OGL
> context seems fine (tested only on Linux/X11). Perhaps this is platform 
> dependant?

Sorry, I should have included this info: This happens only on Win32.

Petri Latvala
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050627/c2f822c4/attachment-0008.pgp>

More information about the SDL mailing list