mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 04:44:54 +00:00
Replaced automatic closing with window parameter.
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ int main(void)
|
||||
|
||||
glfwSetWindowSizeCallback(window_size_callback);
|
||||
|
||||
while (glfwGetCurrentContext())
|
||||
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glfwSwapBuffers(window);
|
||||
|
||||
Reference in New Issue
Block a user