mirror of
https://github.com/glfw/glfw.git
synced 2025-06-08 08:45:02 +00:00
Fix when closing window
This commit is contained in:
parent
0c042e360f
commit
b6098752fa
@ -221,6 +221,8 @@ void _glfwDestroyWindowOS4(_GLFWwindow* window)
|
|||||||
window->os4.appIcon = NULL;
|
window->os4.appIcon = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IIntuition->CloseWindow(window->os4.handle);
|
||||||
|
|
||||||
if (window->os4.gadget) {
|
if (window->os4.gadget) {
|
||||||
IIntuition->DisposeObject((Object *)window->os4.gadget);
|
IIntuition->DisposeObject((Object *)window->os4.gadget);
|
||||||
window->os4.gadget = NULL;
|
window->os4.gadget = NULL;
|
||||||
@ -231,8 +233,6 @@ void _glfwDestroyWindowOS4(_GLFWwindow* window)
|
|||||||
window->os4.image = NULL;
|
window->os4.image = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
IIntuition->CloseWindow(window->os4.handle);
|
|
||||||
|
|
||||||
if (window->monitor)
|
if (window->monitor)
|
||||||
releaseMonitor(window);
|
releaseMonitor(window);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user