|
|
@ -1514,11 +1514,15 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) |
|
|
|
if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (!_glfwInitGLX()) |
|
|
|
|
|
|
|
return GLFW_FALSE; |
|
|
|
if (!_glfwChooseVisualGLX(ctxconfig, fbconfig, &visual, &depth)) |
|
|
|
if (!_glfwChooseVisualGLX(ctxconfig, fbconfig, &visual, &depth)) |
|
|
|
return GLFW_FALSE; |
|
|
|
return GLFW_FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (!_glfwInitEGL()) |
|
|
|
|
|
|
|
return GLFW_FALSE; |
|
|
|
if (!_glfwChooseVisualEGL(ctxconfig, fbconfig, &visual, &depth)) |
|
|
|
if (!_glfwChooseVisualEGL(ctxconfig, fbconfig, &visual, &depth)) |
|
|
|
return GLFW_FALSE; |
|
|
|
return GLFW_FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|