diff --git a/README.md b/README.md index 58eacaaa..fd3126b1 100644 --- a/README.md +++ b/README.md @@ -102,13 +102,17 @@ GLFW bundles a number of dependencies in the `deps/` directory. - [WGL] Made all WGL functions dynamically loaded - [WGL] Removed `GLFW_USE_DWM_SWAP_INTERVAL` compile-time option - [WGL] Bugfix: Swap interval was ignored when DWM was enabled + - [WGL] Bugfix: Failure to find a pixel format was reported incorrectly - [GLX] Added dependency on `libdl` on systems where it provides `dlopen` - [GLX] Made all GLX functions dynamically loaded - [GLX] Removed `_GLFW_HAS_GLXGETPROCADDRESS*` and `_GLFW_HAS_DLOPEN` compile-time options + - [GLX] Bugfix: Failure to find a `GLXFBConfig` was reported incorrectly - [EGL] Made all EGL functions dynamically loaded - [EGL] Bugfix: `glfwGetProcAddress` did not return the addresses of core functions + - [EGL] Bugfix: Failure to find an `EGLConfig` was reported incorrectly + - [NSGL] Bugfix: Failure to find a pixel format was reported incorrectly ## Contact diff --git a/src/egl_context.c b/src/egl_context.c index 2fb90983..f284a70c 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -306,7 +306,7 @@ int _glfwCreateContext(_GLFWwindow* window, if (!chooseFBConfigs(ctxconfig, fbconfig, &config)) { - _glfwInputError(GLFW_PLATFORM_ERROR, + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, "EGL: Failed to find a suitable EGLConfig"); return GL_FALSE; } diff --git a/src/glx_context.c b/src/glx_context.c index 72de582d..443addc0 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -321,7 +321,7 @@ int _glfwCreateContext(_GLFWwindow* window, if (!chooseFBConfig(fbconfig, &native)) { - _glfwInputError(GLFW_PLATFORM_ERROR, + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, "GLX: Failed to find a suitable GLXFBConfig"); return GL_FALSE; } diff --git a/src/nsgl_context.m b/src/nsgl_context.m index c5539e39..f36c722b 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -211,8 +211,8 @@ int _glfwCreateContext(_GLFWwindow* window, [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes]; if (window->nsgl.pixelFormat == nil) { - _glfwInputError(GLFW_PLATFORM_ERROR, - "NSGL: Failed to create OpenGL pixel format"); + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "NSGL: Failed to find a suitable pixel format"); return GL_FALSE; } diff --git a/src/wgl_context.c b/src/wgl_context.c index 20dff1a6..e25b94ef 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -250,7 +250,7 @@ static GLboolean choosePixelFormat(_GLFWwindow* window, closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); if (!closest) { - _glfwInputError(GLFW_PLATFORM_ERROR, + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, "WGL: Failed to find a suitable pixel format"); free(usableConfigs);