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:
parent
6c449e6e8f
commit
ac3a5e28c9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user