X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=5acb9472fbe72f6ef50b40a58975fe7c5c1ed98c;hb=707e773f788ccd861264b29b7802efdf9e92024e;hp=ec4ec3f6e7d96eef6eed0d4d153e60c962c4141b;hpb=a62f11c654df9ebc6bb08138dc963668c0d355fc;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index ec4ec3f..5acb947 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -2240,10 +2240,10 @@ int Game::DrawGLScene(void) } if(mainmenu){ -#if USE_SDL + // !!! FIXME: hack: clamp framerate in menu so text input works correctly on fast systems. SDL_Delay(15); -#endif + glDrawBuffer(GL_BACK); glReadBuffer(GL_BACK); glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ); @@ -3966,15 +3966,9 @@ int Game::DrawGLScene(void) //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); glDrawBuffer(GL_BACK);