Removed some and clarified remaining GLFW error tokens.

This commit is contained in:
Camilla Berglund
2010-10-05 00:08:19 +02:00
parent 419f9f17a1
commit 52546171d0
7 changed files with 41 additions and 47 deletions
+2 -2
View File
@@ -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;
}
}