]> git.jsancho.org Git - lugaru.git/commitdiff
Swap GL buffers in menu, even if motion blur effect is running in-game.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 24 Aug 2005 06:18:59 +0000 (06:18 +0000)
committerRyan C. Gordon <icculus@icculus.org>
Wed, 24 Aug 2005 06:18:59 +0000 (06:18 +0000)
 Fixes i.o Bugzilla #2346.

Source/GameDraw.cpp

index b321e7ec0c450e392c24bdd6510bd914eb697348..967fe6802d5695046d08c9de34d9982d2c9a1dc9 100644 (file)
@@ -3940,8 +3940,14 @@ int Game::DrawGLScene(GLvoid)
 
        //glFlush();
        if(drawmode!=motionblurmode||mainmenu){
+        #if !USE_SDL
+        // this prevents menus from rendering if you hit ESC during
+        //  motion blur sequences...maybe SDL is buffering differently?
                if(drawmode!=motionblurmode)
                        swap_gl_buffers();
+        #else
+               swap_gl_buffers();
+        #endif
        }
 
        //myassert(glGetError() == GL_NO_ERROR);