From: Ryan C. Gordon Date: Wed, 24 Aug 2005 06:18:59 +0000 (+0000) Subject: Swap GL buffers in menu, even if motion blur effect is running in-game. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=7b6f5477e186f9d5775cb623dcc6f34bd38c4514;p=lugaru.git Swap GL buffers in menu, even if motion blur effect is running in-game. Fixes i.o Bugzilla #2346. --- diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index b321e7e..967fe68 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -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);