From: Matthias Braun Date: Sun, 27 Jul 2008 20:00:58 +0000 (+0000) Subject: SDL_GL_SWAP_CONTROL depends on SDL version X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3f04d50cbbdf040351b67b3e0cc6b90da46ef325;p=supertux.git SDL_GL_SWAP_CONTROL depends on SDL version SVN-Revision: 5694 --- diff --git a/src/video/gl_renderer.cpp b/src/video/gl_renderer.cpp index acb11741b..83c1847a5 100644 --- a/src/video/gl_renderer.cpp +++ b/src/video/gl_renderer.cpp @@ -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);