mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Fixed unguarded calls to monitor callback.
This commit is contained in:
parent
3498163da1
commit
f9d1a37621
|
@ -461,6 +461,7 @@ skills.
|
|||
* Matt Arsenault
|
||||
* Keith Bauer
|
||||
* John Bartholomew
|
||||
* Niklas Bergström
|
||||
* blanco
|
||||
* Lambert Clara
|
||||
* Noel Cower
|
||||
|
|
|
@ -140,6 +140,7 @@ void _glfwInputMonitorChange(void)
|
|||
window->monitor = NULL;
|
||||
}
|
||||
|
||||
if (_glfw.monitorCallback)
|
||||
_glfw.monitorCallback((GLFWmonitor*) monitors[i], GLFW_DISCONNECTED);
|
||||
}
|
||||
|
||||
|
@ -161,6 +162,7 @@ void _glfwInputMonitorChange(void)
|
|||
if (j < monitorCount)
|
||||
continue;
|
||||
|
||||
if (_glfw.monitorCallback)
|
||||
_glfw.monitorCallback((GLFWmonitor*) _glfw.monitors[i], GLFW_CONNECTED);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user