|
|
|
@ -395,10 +395,21 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, |
|
|
|
|
|
|
|
|
|
if (ctxconfig->client != GLFW_NO_API) |
|
|
|
|
{ |
|
|
|
|
if (!_glfwInitEGL()) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
if (ctxconfig->source == GLFW_EGL_CONTEXT_API || |
|
|
|
|
ctxconfig->source == GLFW_NATIVE_CONTEXT_API) |
|
|
|
|
{ |
|
|
|
|
if (!_glfwInitEGL()) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
} |
|
|
|
|
else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) |
|
|
|
|
{ |
|
|
|
|
if (!_glfwInitOSMesa()) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (wndconfig->title) |
|
|
|
|