]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
fixed glClear
authorClyne Sullivan <tullivan99@gmail.com>
Mon, 7 Sep 2015 15:24:43 +0000 (11:24 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Mon, 7 Sep 2015 15:24:43 +0000 (11:24 -0400)
src/main.cpp

index b19bda04a7feb988bd8762cf2473fdf6b1c1d57d..df9d069ba8333b22a37cadb9b809acc181fbfd0f 100644 (file)
@@ -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;