Update visual/depth initialization to that of master instead of transparent-windows branch

This commit is contained in:
Bailey Cosier 2017-09-17 02:23:27 +07:00
parent 817b697b7c
commit 88b4ada658

View File

@ -1828,14 +1828,8 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
if (ctxconfig->client == GLFW_NO_API ||
ctxconfig->source == GLFW_OSMESA_CONTEXT_API)
{
#if defined(_GLFW_GLX)
if (!_glfwChooseVisualGLX(wndconfig, ctxconfig, fbconfig, &visual, &depth))
return GLFW_FALSE;
#elif defined(_GLFW_EGL)
if (!_glfwChooseVisualEGL(wndconfig, ctxconfig, fbconfig, &visual, &depth))
return GLFW_FALSE;
#endif
visual = DefaultVisual(_glfw.x11.display, _glfw.x11.screen);
depth = DefaultDepth(_glfw.x11.display, _glfw.x11.screen);
}
if (!createNativeWindow(window, wndconfig, visual, depth))