From: Ryan C. Gordon Date: Fri, 5 Aug 2005 14:32:21 +0000 (+0000) Subject: Work continues. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=d25691130ad708d13552bb4c055c0fc5e4ed32cb;p=lugaru.git Work continues. --- 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 }