mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-31 03:18:50 -05:00
Merge branch 'master' of ssh://glfw.git.sourceforge.net/gitroot/glfw/glfw
This commit is contained in:
commit
bcf16d83c1
|
@ -523,6 +523,10 @@ GLFWAPI void glfwCloseWindow(GLFWwindow handle)
|
||||||
|
|
||||||
_GLFWwindow* window = (_GLFWwindow*) handle;
|
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||||
|
|
||||||
|
// Allow closing of NULL (to match the behavior of free)
|
||||||
|
if (window == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
// Show mouse pointer again (if hidden)
|
// Show mouse pointer again (if hidden)
|
||||||
if (window == _glfwLibrary.cursorLockWindow)
|
if (window == _glfwLibrary.cursorLockWindow)
|
||||||
glfwEnable(window, GLFW_MOUSE_CURSOR);
|
glfwEnable(window, GLFW_MOUSE_CURSOR);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user