|
@@ -85,10 +85,11 @@ bool GLSDLScreen::isOK() {
|
85
|
85
|
bool GLSDLScreen::apply() {
|
86
|
86
|
if(!SDL_WasInit(SDL_INIT_VIDEO)) {
|
87
|
87
|
if(SDL_Init(SDL_INIT_VIDEO)==-1) {
|
|
88
|
+ std::cerr << "Konnte SDL_VIDEO nicht initialisieren" << std::endl;
|
88
|
89
|
return false;
|
89
|
90
|
}
|
90
|
91
|
}
|
91
|
|
-
|
|
92
|
+
|
92
|
93
|
screen = SDL_SetVideoMode(width, height, bpp, getFlags());
|
93
|
94
|
|
94
|
95
|
if(!screen) {
|
|
@@ -127,7 +128,7 @@ bool GLSDLScreen::apply() {
|
127
|
128
|
GLTexture::reloadAll();
|
128
|
129
|
glMatrixMode(GL_TEXTURE);
|
129
|
130
|
glLoadIdentity();
|
130
|
|
-
|
|
131
|
+
|
131
|
132
|
glMatrixMode(GL_MODELVIEW);
|
132
|
133
|
}
|
133
|
134
|
|