mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
added support for MESA_GLX_FORCE_ALPHA env var
This commit is contained in:
parent
b8f29f29eb
commit
a13331d59b
1 changed files with 4 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue