From 88b4ada658ff312864ede6746b30e87b9317347f Mon Sep 17 00:00:00 2001 From: Bailey Cosier Date: Sun, 17 Sep 2017 02:23:27 +0700 Subject: [PATCH] Update visual/depth initialization to that of master instead of transparent-windows branch --- src/x11_window.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index 759435c34..a7b672624 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -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))