mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 12:54:54 +00:00
Replaced automatic closing with window parameter.
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ int main(int argc, char** argv)
|
||||
gluOrtho2D(0.f, 1.f, 0.f, 0.5f);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
while (glfwGetCurrentContext())
|
||||
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
|
||||
{
|
||||
GLfloat time = (GLfloat) glfwGetTime();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user