Display Lists die when Fullscreen Toggles

When I recreate the window for fullscreen mode I lose all textures and display lists, therefore need to reload them.

Therin lies the problem, my scene is recreated and the sprite goes back to it’s starting frame, and whatever position on the map it WAS on, is reset to the “start” position.

Is there a way to preserve the list data? what am I doing wrong here? Should I just not worry about it?

Also does using alot of display lists hurt performance? I have a font and sprites and everything in about 400+ display lists…

Hi !

It does sound like to create a new OpenGL rendering context when the window is resized (SDL does this for example), there is no need to do this.

Mikael

It’s ok I probably shouldn’t worry about it since most games don’t let you switch video modes during the game action…