diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-07-23 15:47:04 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-07-23 15:47:04 +0000 |
commit | a13331d59b535aa4a1ddad695420de5d6f814550 (patch) | |
tree | e14a66eaef98afbfc4eed680c9e09c1155047247 /src/mesa/drivers/x11 | |
parent | b8f29f29eb611c92d43aaf8ffcd2d9743b3af967 (diff) |
added support for MESA_GLX_FORCE_ALPHA env var
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 3a8c792900..c380ba27dc 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<NumVisuals; i++) { XMesaVisual v = VisualTable[i]; |