From 4584cf67809e51787bdbc2588e3464823dde0a04 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 30 Aug 2013 00:33:20 -0300 Subject: [PATCH] Always use regular vsync instead of preferring adaptive vsync if supported --- src/modules/window/sdl/Window.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index c74718146..d142503de 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/src/modules/window/sdl/Window.cpp @@ -240,15 +240,7 @@ bool Window::setContext(int fsaa, bool vsync) } // Set vertical synchronization. - if (vsync) - { - // Prefer EXT_swap_control_tear (late swaps happen immediately), - // otherwise fall back to regular vsync. - if (SDL_GL_SetSwapInterval(-1) < 0 || SDL_GL_GetSwapInterval() != -1) - SDL_GL_SetSwapInterval(1); - } - else - SDL_GL_SetSwapInterval(0); + SDL_GL_SetSwapInterval(vsync ? 1 : 0); // Verify FSAA setting. int buffers;