From c381716ecf8c5aca92c59f67caab57dcffb2e19a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Oct 2021 17:15:46 +0530 Subject: [PATCH] Specify we need alpha as well --- glfw/glx_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/glx_context.c b/glfw/glx_context.c index d6f78ddda..849ff910a 100644 --- a/glfw/glx_context.c +++ b/glfw/glx_context.c @@ -60,9 +60,9 @@ choose_fb_config(const _GLFWfbconfig* desired, bool trust_window_bit, int *nelem if (desired->depthBits != GLFW_DONT_CARE) ATTR(GLX_DEPTH_SIZE, desired->depthBits); if (desired->stencilBits != GLFW_DONT_CARE) ATTR(GLX_STENCIL_SIZE, desired->stencilBits); if (use_best_color_depth) { - // we just ask for the highest available R+G+B color depth. This hopefully + // we just ask for the highest available R+G+B+A color depth. This hopefully // works with 10bit (r=10, g=10, b=19, a=2) visuals - ATTR(GLX_RED_SIZE, 1); ATTR(GLX_GREEN_SIZE, 1); ATTR(GLX_BLUE_SIZE, 1); ATTR(GLX_ALPHA_SIZE, 0); + ATTR(GLX_RED_SIZE, 1); ATTR(GLX_GREEN_SIZE, 1); ATTR(GLX_BLUE_SIZE, 1); ATTR(GLX_ALPHA_SIZE, 1); } else { if (desired->redBits != GLFW_DONT_CARE) ATTR(GLX_RED_SIZE, desired->redBits); if (desired->greenBits != GLFW_DONT_CARE) ATTR(GLX_GREEN_SIZE, desired->greenBits);