mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 14:22:50 +00:00
Replaced automatic closing with window parameter.
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ int main(int argc, char** argv)
|
||||
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
||||
while (glfwGetCurrentContext())
|
||||
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
|
||||
{
|
||||
int width, height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user