mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Made the leap to glfwWaitEvents.
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ int main(void)
|
|||||||
if (thrd_create(&thread, thread_start, window) == thrd_success)
|
if (thrd_create(&thread, thread_start, window) == thrd_success)
|
||||||
{
|
{
|
||||||
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
|
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
|
||||||
glfwPollEvents();
|
glfwWaitEvents();
|
||||||
|
|
||||||
running = GL_FALSE;
|
running = GL_FALSE;
|
||||||
thrd_join(thread, &result);
|
thrd_join(thread, &result);
|
||||||
|
|||||||
Reference in New Issue
Block a user