VIDEORESIZE and FULLSCREEN

Hi,

I have two problem witch my SDL loop:

  • resize is ok but sometimes, and only sometimes, when I maximize and
    minimize the windows,
    the 'Case SDL_VIDEORESIZE is not execute;

  • when I go in FULLSCREEN mode, the model’s textures broke.

(I attach only main function)

Any idea.? Thanks

Michele.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: source.cpp
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051127/abc66701/attachment.asc

Hi,

I have two problem witch my SDL loop:

  • resize is ok but sometimes, and only sometimes, when I maximize
    and minimize the windows, the 'Case SDL_VIDEORESIZE is not execute;

Are you sure? This certainly sounds like an SDL bug…

  • when I go in FULLSCREEN mode, the model’s textures broke.

This is known and (I think) documented behavior.

You may lose OpenGL textures and/or other OpenGL state data as a
result of reopenning the OpenGL context.

Also, certain backends can lose surfaces at any time, because the
operating system steals the VRAM back whenever it wants to. (Usually
happens when the user swithes to another application.)

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Sunday 27 November 2005 10.57, Michi wrote: