From 9af4fbcd7bf9a922152c966aa92daaf7a5e75410 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 7 Sep 2015 11:24:43 -0400 Subject: fixed glClear --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3