mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Removed auto-polling.
This commit is contained in:
+3
-8
@@ -470,10 +470,9 @@ GLFWAPI int glfwOpenWindow(int width, int height,
|
||||
return GL_FALSE;
|
||||
|
||||
// Clear GLFW window state
|
||||
_glfwWin.active = GL_TRUE;
|
||||
_glfwWin.iconified = GL_FALSE;
|
||||
_glfwWin.mouseLock = GL_FALSE;
|
||||
_glfwWin.autoPollEvents = GL_TRUE;
|
||||
_glfwWin.active = GL_TRUE;
|
||||
_glfwWin.iconified = GL_FALSE;
|
||||
_glfwWin.mouseLock = GL_FALSE;
|
||||
_glfwClearInput();
|
||||
|
||||
// Unregister all callback functions
|
||||
@@ -742,10 +741,6 @@ GLFWAPI void glfwSwapBuffers(void)
|
||||
// Update display-buffer
|
||||
if (_glfwWin.opened)
|
||||
_glfwPlatformSwapBuffers();
|
||||
|
||||
// Check for window messages
|
||||
if (_glfwWin.autoPollEvents)
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user