mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Fix error type for unavailable pixel format error
All backends reported this as GLFW_PLATFORM_ERROR, while the documentation mandates GLFW_FORMAT_UNAVAILABLE.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user