From: Brian Paul Date: Fri, 23 Jul 2004 15:47:04 +0000 (+0000) Subject: added support for MESA_GLX_FORCE_ALPHA env var X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a13331d59b535aa4a1ddad695420de5d6f814550;p=mesa.git added support for MESA_GLX_FORCE_ALPHA env var --- diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 3a8c7929004..c380ba27dcc 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -282,6 +282,10 @@ save_glx_visual( Display *dpy, XVisualInfo *vinfo, else comparePointers = GL_FALSE; + /* Force the visual to have an alpha channel */ + if (rgbFlag && _mesa_getenv("MESA_GLX_FORCE_ALPHA")) + alphaFlag = GL_TRUE; + /* First check if a matching visual is already in the list */ for (i=0; i