diff --git a/tests/events.c b/tests/events.c index 6ae6718a..bb8927c0 100644 --- a/tests/events.c +++ b/tests/events.c @@ -372,10 +372,9 @@ int main(void) while (glfwIsWindow(window) == GL_TRUE) { - glfwWaitEvents(); glClear(GL_COLOR_BUFFER_BIT); glfwSwapBuffers(); - glfwPollEvents(); + glfwWaitEvents(); } glfwTerminate();