moved event pumping onto the draw thread, should fix windows event problems
[physics.git] / src / main.cpp
index f94fac6..e932742 100644 (file)
@@ -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);