summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/interface.c b/src/client/interface.c
index 194d1d0..57a9bee 100644
--- a/src/client/interface.c
+++ b/src/client/interface.c
@@ -98,7 +98,9 @@ SDL_Surface * SetVideoMode(int width, int height, int bpp, Uint32 flags)
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+#ifdef SDL_GL_SWAP_CONTROL
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
+#endif
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);