SDL_GL_SWAP_CONTROL depends on SDL version
authorMatthias Braun <matze@braunis.de>
Sun, 27 Jul 2008 20:00:58 +0000 (20:00 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 27 Jul 2008 20:00:58 +0000 (20:00 +0000)
SVN-Revision: 5694

src/video/gl_renderer.cpp

index acb1174..83c1847 100644 (file)
@@ -151,8 +151,7 @@ Renderer::Renderer()
   if(texture_manager != 0)
     texture_manager->save_textures();
 
-#ifndef GP2X
-  //FIXME: This is not supported on the GP2X
+#ifdef SDL_GL_SWAP_CONTROL
   if(config->try_vsync) {
     /* we want vsync for smooth scrolling */
     SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);