From: Clyne Sullivan Date: Mon, 7 Sep 2015 15:24:43 +0000 (-0400) Subject: fixed glClear X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=9af4fbcd7bf9a922152c966aa92daaf7a5e75410;p=clyne%2Fgamedev.git fixed glClear --- 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;