I have a very nice GUI in windowed mode (800x600) : http://s-project.renchap.com/cegui/Image%2014.png
But when i switch to fullscreen (1024x768), the textures disappears : http://s-project.renchap.com/cegui/Image%2015.png
i use this to change the resolution :
Code: Select all
SDL_videoFlags |= SDL_FULLSCREEN;
SDL_spSurface = SDL_SetVideoMode(1024,768,SP_SCREEN_BPP,SDL_videoFlags);
resizeWindow(1024,768);
GUI::getSingleton().changeDisplaySize(1024.0,768.0);
with :
Code: Select all
void GUI::changeDisplaySize(float width,float height) {
d_renderer->setDisplaySize(CEGUI::Size(width,height));
}
i dont know if my code is good, or if it is (again) a problem in the opengl renderer