PDA

View Full Version : Display Lists die when Fullscreen Toggles



deadalive
04-15-2003, 01:23 PM
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..

mikael_aronsson
04-15-2003, 10:20 PM
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

deadalive
04-17-2003, 12:19 PM
It's ok I probably shouldn't worry about it since most games don't let you switch video modes during the game action..