]> git.localhorst.tv Git - blank.git/commitdiff
fix direct rendering
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 17 Mar 2016 15:17:17 +0000 (16:17 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 17 Mar 2016 15:17:17 +0000 (16:17 +0100)
src/app/init.cpp

index a0ea7b51ba5d614a3df13814c4eee90468d6fe1d..fea5653cf1cf6499bb378b22286169cf2c15fff8 100644 (file)
@@ -157,9 +157,9 @@ InitGL::InitGL(bool double_buffer, int sample_size) {
                throw SDLError("SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE)");
        }
 
-       if (double_buffer) {
-               if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1) != 0) {
-                       throw SDLError("SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1)");
+       if (!double_buffer) {
+               if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0) != 0) {
+                       throw SDLError("SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0)");
                }
        }