mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Removed duplicate event processing.
This commit is contained in:
+1
-2
@@ -372,10 +372,9 @@ int main(void)
|
|||||||
|
|
||||||
while (glfwIsWindow(window) == GL_TRUE)
|
while (glfwIsWindow(window) == GL_TRUE)
|
||||||
{
|
{
|
||||||
glfwWaitEvents();
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
glfwSwapBuffers();
|
glfwSwapBuffers();
|
||||||
glfwPollEvents();
|
glfwWaitEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
|
|||||||
Reference in New Issue
Block a user