The glXChooseVisual function tries to choose the best X visual for the
given attribute list. However, if this doesn't suit your needs you can
force Mesa to use any X visual you want (any supported by your X server
-that is) by setting the **MESA_RGB_VISUAL** and **MESA_CI_VISUAL**
-environment variables. When an RGB visual is requested, glXChooseVisual
-will first look if the MESA_RGB_VISUAL variable is defined. If so, it
-will try to use the specified visual. Similarly, when a color index
-visual is requested, glXChooseVisual will look for the MESA_CI_VISUAL
-variable.
+that is) by setting the **MESA_RGB_VISUAL** environment variable. When
+a visual is requested, glXChooseVisual will first look if the
+MESA_RGB_VISUAL variable is defined. If so, it will try to use the
+specified visual.
The format of accepted values is: ``visual-class depth``
using csh:
% setenv MESA_RGB_VISUAL "TrueColor 8" // 8-bit TrueColor
- % setenv MESA_CI_VISUAL "PseudoColor 12" // 12-bit PseudoColor
% setenv MESA_RGB_VISUAL "PseudoColor 8" // 8-bit PseudoColor
using bash:
$ export MESA_RGB_VISUAL="TrueColor 8"
- $ export MESA_CI_VISUAL="PseudoColor 12"
$ export MESA_RGB_VISUAL="PseudoColor 8"
Double Buffering
::
MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode (X only)
- MESA_CI_VISUAL - specifies the X visual and depth for CI mode (X only)
MESA_BACK_BUFFER - specifies how to implement the back color buffer (X only)
MESA_PRIVATE_CMAP - force aux/tk libraries to use private colormaps (X only)
MESA_GAMMA - gamma correction coefficients (X only)