|
|
|
@ -85,10 +85,11 @@ bool GLSDLScreen::isOK() {
|
|
|
|
|
bool GLSDLScreen::apply() {
|
|
|
|
|
if(!SDL_WasInit(SDL_INIT_VIDEO)) {
|
|
|
|
|
if(SDL_Init(SDL_INIT_VIDEO)==-1) {
|
|
|
|
|
std::cerr << "Konnte SDL_VIDEO nicht initialisieren" << std::endl;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
screen = SDL_SetVideoMode(width, height, bpp, getFlags());
|
|
|
|
|
|
|
|
|
|
if(!screen) {
|
|
|
|
@ -127,7 +128,7 @@ bool GLSDLScreen::apply() {
|
|
|
|
|
GLTexture::reloadAll();
|
|
|
|
|
glMatrixMode(GL_TEXTURE);
|
|
|
|
|
glLoadIdentity();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
glMatrixMode(GL_MODELVIEW);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|