X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=e932742e7e1e86bc6338affcb077b65c46d4941f;hp=f94fac6213f7c71db316a3e557148946a942bcbb;hb=4a0863f343fa6f68639759494e3c0f0ab8ae2a76;hpb=719d202f8ac20943df204e4c2bfa6ab491bd1182 diff --git a/src/main.cpp b/src/main.cpp index f94fac6..e932742 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -209,6 +209,8 @@ void draw() { game::draw(); + SDL_PumpEvents(); // has to be on the Draw thread for the Windows API + SDL_GL_SwapBuffers(); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);