mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Fixed test for wrong client API.
This commit is contained in:
+1
-1
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user