aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-07 11:24:43 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-07 11:24:43 -0400
commit9af4fbcd7bf9a922152c966aa92daaf7a5e75410 (patch)
treeb4bef685eaad07a0d1dcd4788fa1168eb1d5a9c3 /src
parentcf71cfae766f962777b71c02dc85daf7f0f8051a (diff)
fixed glClear
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b19bda0..df9d069 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -44,7 +44,7 @@ int main(int argc,char **argv){
glClearColor(1,1,1,0);
while(gameRunning){
glClear(GL_COLOR_BUFFER_BIT);
- SDL_UpdateWindowSurface(window);
+ SDL_GL_SwapWindow(window);
while(SDL_PollEvent(&e)){
if(e.type==SDL_QUIT)
gameRunning=false;