mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05: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);
|
||||
if (_glfw.monitors == NULL)
|
||||
if (!_glfw.monitorCount)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found");
|
||||
_glfwPlatformTerminate();
|
||||
|
|
Loading…
Reference in New Issue
Block a user