From d25691130ad708d13552bb4c055c0fc5e4ed32cb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 5 Aug 2005 14:32:21 +0000 Subject: [PATCH] Work continues. --- Source/Game.h | 8 ++++++++ Source/GameDraw.cpp | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Source/Game.h b/Source/Game.h index d39b739..96feef0 100644 --- a/Source/Game.h +++ b/Source/Game.h @@ -38,6 +38,14 @@ extern GLuint rabbittexture; +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + class Game { 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 } -- 2.39.5