projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
moved event pumping onto the draw thread, should fix windows event problems
[physics.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
f94fac6
..
e932742
100644
(file)
--- 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);