aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-14 12:48:49 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-14 12:48:49 -0500
commitd20633705e53a122467fb39fdbb2de3cfec279f7 (patch)
treedb9d18f65b0461f183bfe38ca07521b4fdcbcce4 /src/render.cpp
parent3da25ab8c6ad1b52b808bfeffc0ad1b32621cfac (diff)
thread work
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.cpp b/src/render.cpp
index a63d63a..5cbd11e 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -79,7 +79,7 @@ void init(void)
+ reinterpret_cast<const char *>(glewGetErrorString(glewError)));
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); // anti-aliasing
- SDL_GL_SetSwapInterval(0); // v-sync
+ SDL_GL_SetSwapInterval(1); // v-sync
SDL_ShowCursor(SDL_DISABLE); // hide the cursor
glViewport(0, 0, game::SCREEN_WIDTH, game::SCREEN_HEIGHT); // pixel coordinates
glEnable(GL_BLEND); // alpha enabling