From b4843b7605142dce28d54435a6b78f5b92ba4076 Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Fri, 4 Apr 2008 21:58:58 +0200 Subject: [PATCH] Enabled VSYNC --- WindowManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WindowManager.cpp b/WindowManager.cpp index 47ccd57..575b2a0 100644 --- a/WindowManager.cpp +++ b/WindowManager.cpp @@ -89,12 +89,12 @@ bool WindowManager::initialize(const int width, const int height) SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 1); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 1); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); - + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + // unused requirements //SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); //SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32); //SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); - //SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); //SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // 4x FSAA, might be too heavy for some machines :-) -- GitLab