added support for MESA_GLX_FORCE_ALPHA env var
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Jul 2004 15:47:04 +0000 (15:47 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Jul 2004 15:47:04 +0000 (15:47 +0000)
src/mesa/drivers/x11/fakeglx.c

index 3a8c79290045a0cb83fb8da9e2bab890064c10a1..c380ba27dcc6ba68773d8609a6ba613ccbd78d2e 100644 (file)
@@ -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<NumVisuals; i++) {
       XMesaVisual v = VisualTable[i];