X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=f2c59ae71e7361e9061b92afb85c10cd9c84558e;hb=d37fbfc90748851561e9ebee88a274985a1f1546;hp=b4a5c86de5a8d0dd0f9f03755f973476589038b8;hpb=2380b6fea047f5a8cafc64d11291798cd30e0515;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index b4a5c86..f2c59ae 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -3958,8 +3958,12 @@ int Game::DrawGLScene(GLvoid) if(drawmode!=motionblurmode||mainmenu){ #ifdef WIN32 if(drawmode!=motionblurmode) SwapBuffers( hDC); -#else +#elif PLATFORM_MACOSX if(drawmode!=motionblurmode)aglSwapBuffers(gaglContext); // send swap command +#elif USE_SDL + if(drawmode!=motionblurmode)SDL_GL_SwapBuffers(); +#else + #error define your platform. #endif // send swap command }