Restoring textures when resizing window
Posted: Sun Jan 04, 2009 20:56
Is the manual restoration of textures described in the tutorial for CEGUI with SDL and OpenGL still needed after SDLs fix in SDL 1.2.10 that restores the OpenGL context when the window resizes?
Regards
Nimos
Code: Select all
renderer->grabTextures();
//your resize code here, including the SDL_SetVideoMode call
renderer->restoreTextures();
renderer->setDisplaySize(CEGUI::Size(e.resize.w, e.resize.h));
Regards
Nimos