1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Made the leap to glfwWaitEvents.

This commit is contained in:
Camilla Berglund 2012-08-12 16:24:37 +02:00
parent 6c449e6e8f
commit ac3a5e28c9

View File

@ -80,7 +80,7 @@ int main(void)
if (thrd_create(&thread, thread_start, window) == thrd_success)
{
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
glfwPollEvents();
glfwWaitEvents();
running = GL_FALSE;
thrd_join(thread, &result);