From 7b6f5477e186f9d5775cb623dcc6f34bd38c4514 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 24 Aug 2005 06:18:59 +0000 Subject: [PATCH] Swap GL buffers in menu, even if motion blur effect is running in-game. Fixes i.o Bugzilla #2346. --- Source/GameDraw.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5