mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 12:02:00 +00:00
Merge pull request #31 from arsenm/master
Fixed silent failure when no monitors were found.
This commit is contained in:
commit
11b646920b
@ -147,6 +147,7 @@ GLFWAPI int glfwInit(void)
|
|||||||
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
|
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
|
||||||
if (!_glfw.monitors)
|
if (!_glfw.monitors)
|
||||||
{
|
{
|
||||||
|
_glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found");
|
||||||
_glfwPlatformTerminate();
|
_glfwPlatformTerminate();
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
@ -57,9 +57,8 @@ set_target_properties(title PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Title")
|
|||||||
add_executable(windows WIN32 MACOSX_BUNDLE windows.c)
|
add_executable(windows WIN32 MACOSX_BUNDLE windows.c)
|
||||||
set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows")
|
set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows")
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
target_link_libraries(threads ${thread_LIBRARIES})
|
||||||
target_link_libraries(threads ${thread_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(WINDOWS_BINARIES accuracy sharing tearing threads title windows)
|
set(WINDOWS_BINARIES accuracy sharing tearing threads title windows)
|
||||||
set(CONSOLE_BINARIES clipboard defaults events fsaa fsfocus gamma glfwinfo
|
set(CONSOLE_BINARIES clipboard defaults events fsaa fsfocus gamma glfwinfo
|
||||||
|
Loading…
Reference in New Issue
Block a user