mirror of
https://github.com/glfw/glfw.git
synced 2026-08-28 06:45:55 +02:00
Replaced automatic closing with window parameter.
This commit is contained in:
@@ -106,7 +106,7 @@ int main(void)
|
||||
|
||||
set_swap_interval(window, swap_interval);
|
||||
|
||||
while (glfwGetCurrentContext())
|
||||
while (!glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user