1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 15:17:25 -04:00

Fixed test for wrong client API.

This commit is contained in:
Camilla Berglund 2012-10-04 04:05:37 +02:00
parent f236fc2f61
commit ae5da60c18

View File

@ -729,7 +729,7 @@ static GLboolean createContext(_GLFWwindow* window,
else if (colorBits < 15) else if (colorBits < 15)
colorBits = 15; colorBits = 15;
if (wndconfig->clientAPI != GLFW_OPENGL_ES_API) if (wndconfig->clientAPI != GLFW_OPENGL_API)
{ {
_glfwSetError(GLFW_VERSION_UNAVAILABLE, _glfwSetError(GLFW_VERSION_UNAVAILABLE,
"Cocoa/NSOpenGL: NSOpenGL does not support OpenGL ES"); "Cocoa/NSOpenGL: NSOpenGL does not support OpenGL ES");