summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-19 12:00:52 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:41 -0600
commit0846d5802965d257f176e033d7a6ac353ed648f3 (patch)
tree1ada2e260970883decd2165d3dd3b74ad34212fd /src/window.cpp
parentbfdc713b68dd6f8d61e7b26fc2cff15caf24b44d (diff)
-speedcaps now working again
-creatures now randomize target better again -thats enough for today, src is still a mess and main can be cleaned a bit
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 9306b15..bd6fdcf 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -13,6 +13,7 @@ Window::Window(int width, int height, const std::string& title)
main = SDL_CreateWindow(title.c_str(), SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,width,height,SDL_WINDOW_OPENGL);
glContext = SDL_GL_CreateContext(main);
+ SDL_GL_SetSwapInterval(0);
GLenum status = glewInit();
closed = false;