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:
Camilla Berglund
2015-09-16 16:24:21 +02:00
parent 40da56fbf7
commit 7c6a8775eb
5 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -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;
}