diff --git a/README.md b/README.md index a8dabe9d..c4edca42 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,8 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/). - Allowed character callback to be triggered regardless of modifier keys - Bugfix: The `-Wall` flag was not used with Clang and other GCC compatibles - Bugfix: The default for `GLFW_ALPHA_BITS` was set to zero + - Bugfix: `glfwInit` would segfault if monitor enumeration failed and no error + callback was set - [Win32] Added `_GLFW_USE_DWM_SWAP_INTERVAL` for forcing the swap interval to be set even when DWM compositing is enabled - [Win32] Added support for forcing the use of the high-performance GPU diff --git a/src/init.c b/src/init.c index 4e334d0e..d34abea7 100644 --- a/src/init.c +++ b/src/init.c @@ -130,7 +130,7 @@ GLFWAPI int glfwInit(void) _glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount); if (_glfw.monitors == NULL) { - _glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found"); + _glfwInputError(GLFW_PLATFORM_ERROR, "No monitors found"); _glfwPlatformTerminate(); return GL_FALSE; }