XQuartz: GL: Mark visuals that are slower than others, due to lack of acceleration.

This is used in libGL to determine a preferred visual.  glxinfo -v will also
report "visualCaveat=Slow" for such visuals.
This commit is contained in:
George Peter Staplin 2008-10-30 13:44:55 -06:00
parent 423f68cd52
commit d5c17f585a

View File

@ -177,7 +177,13 @@ void setVisualConfigs(void) {
}
visualConfigs[i].auxBuffers = aux ? conf->aux_buffers : 0;
visualConfigs[i].level = 0;
visualConfigs[i].visualRating = GLX_NONE;
if(conf->accelerated) {
visualConfigs[i].visualRating = GLX_NONE;
} else {
visualConfigs[i].visualRating = GLX_SLOW_VISUAL_EXT;
}
visualConfigs[i].transparentPixel = GLX_NONE;
visualConfigs[i].transparentRed = GLX_NONE;
visualConfigs[i].transparentGreen = GLX_NONE;