Parcourir la source

Hack for msvcrt and mintty

Camilla Berglund il y a 9 ans
Parent
commit
3bbc8e3191
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      tests/joysticks.c

+ 3 - 0
tests/joysticks.c

@@ -229,6 +229,9 @@ int main(void)
 
         glfwSwapBuffers(window);
         glfwPollEvents();
+
+        // Workaround for an issue with msvcrt and mintty
+        fflush(stdout);
     }
 
     glfwTerminate();