mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Update visual/depth initialization to that of master instead of transparent-windows branch
This commit is contained in:
parent
817b697b7c
commit
88b4ada658
@ -1828,14 +1828,8 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
|
|||||||
if (ctxconfig->client == GLFW_NO_API ||
|
if (ctxconfig->client == GLFW_NO_API ||
|
||||||
ctxconfig->source == GLFW_OSMESA_CONTEXT_API)
|
ctxconfig->source == GLFW_OSMESA_CONTEXT_API)
|
||||||
{
|
{
|
||||||
|
visual = DefaultVisual(_glfw.x11.display, _glfw.x11.screen);
|
||||||
#if defined(_GLFW_GLX)
|
depth = DefaultDepth(_glfw.x11.display, _glfw.x11.screen);
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!createNativeWindow(window, wndconfig, visual, depth))
|
if (!createNativeWindow(window, wndconfig, visual, depth))
|
||||||
|
Loading…
Reference in New Issue
Block a user