X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=c38e55204f804591edc7903afdaaddb80d9273e0;hb=e0577022454729f0f0473c0191f831beaa72fcd1;hp=b321e7ec0c450e392c24bdd6510bd914eb697348;hpb=c26c5303fbc3fcc607681b848bc4fd0641320691;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index b321e7e..c38e552 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -189,7 +189,7 @@ long long Game::MD5_string (char *string){ //return 1111111111111111; } -int Game::DrawGLScene(GLvoid) +int Game::DrawGLScene(void) { static float texcoordwidth,texcoordheight; static float texviewwidth, texviewheight; @@ -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);