Permalink
Browse files

added GLUT idle callback patch by RPD

  • Loading branch information...
1 parent bb0eb8f commit d293a5df69d9de0f3939189c6152cec135007e21 @gaborpapp gaborpapp committed Jul 30, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main.cpp
View
@@ -19,6 +19,7 @@
#include <sys/time.h>
#include <iostream>
#include <string>
+#include <unistd.h>
#include "Unicode.h"
#include "GL/glew.h"
@@ -188,6 +189,9 @@ void PassiveMotionCallback(int x, int y)
void IdleCallback()
{
glutPostRedisplay();
+#ifndef WIN32
+ usleep(100);
+#endif
}
void DoRecorder()

0 comments on commit d293a5d

Please sign in to comment.