mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Fix cleanup on success in threaded rendering test
This commit is contained in:
@@ -146,6 +146,10 @@ int main(void)
|
|||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
thrd_join(threads[i].id, &result);
|
thrd_join(threads[i].id, &result);
|
||||||
|
|
||||||
|
for (i = 0; i < count; i++)
|
||||||
|
glfwDestroyWindow(threads[i].window);
|
||||||
|
|
||||||
|
glfwTerminate();
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user