mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +00:00
Fixed test for no found monitors.
This commit is contained in:
parent
8de5c4e3b8
commit
382133b384
@ -129,7 +129,7 @@ GLFWAPI int glfwInit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
|
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
|
||||||
if (_glfw.monitors == NULL)
|
if (!_glfw.monitorCount)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found");
|
_glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found");
|
||||||
_glfwPlatformTerminate();
|
_glfwPlatformTerminate();
|
||||||
|
Loading…
Reference in New Issue
Block a user