mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Removed some and clarified remaining GLFW error tokens.
This commit is contained in:
@@ -475,7 +475,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
||||
// Fail if OpenGL 3.0 or above was requested
|
||||
if (wndconfig->glMajor > 2)
|
||||
{
|
||||
_glfwSetError(GLFW_UNAVAILABLE_VERSION);
|
||||
_glfwSetError(GLFW_VERSION_UNAVAILABLE);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
||||
_glfwLibrary.NS.delegate = [[GLFWApplicationDelegate alloc] init];
|
||||
if (_glfwLibrary.NS.delegate == nil)
|
||||
{
|
||||
_glfwSetError(GLFW_INTERNAL_ERROR);
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
@@ -496,7 +496,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
||||
window->NS.delegate = [[GLFWWindowDelegate alloc] initWithGlfwWindow:window];
|
||||
if (window->NS.delegate == nil)
|
||||
{
|
||||
_glfwSetError(GLFW_INTERNAL_ERROR);
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
@@ -627,7 +627,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
||||
[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes];
|
||||
if (window->NSGL.pixelFormat == nil)
|
||||
{
|
||||
_glfwSetError(GLFW_NO_PIXEL_FORMAT);
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
@@ -641,7 +641,7 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
||||
shareContext:share];
|
||||
if (window->NSGL.context == nil)
|
||||
{
|
||||
_glfwSetError(GLFW_INTERNAL_ERROR);
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user