mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Removed some and clarified remaining GLFW error tokens.
This commit is contained in:
+2
-2
@@ -564,7 +564,7 @@ GLFWAPI GLFWwindow glfwOpenWindow(int width, int height,
|
||||
// The desired OpenGL version is greater than the actual version
|
||||
// This only happens if the machine lacks {GLX|WGL}_ARB_create_context
|
||||
glfwCloseWindow(window);
|
||||
_glfwSetError(GLFW_UNAVAILABLE_VERSION);
|
||||
_glfwSetError(GLFW_VERSION_UNAVAILABLE);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
@@ -574,7 +574,7 @@ GLFWAPI GLFWwindow glfwOpenWindow(int width, int height,
|
||||
if (!window->GetStringi)
|
||||
{
|
||||
glfwCloseWindow(window);
|
||||
_glfwSetError(GLFW_INTERNAL_ERROR);
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR);
|
||||
return GL_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user