diff options
| author | George Peter Staplin <gps@Georges-Workstation.local> | 2008-10-30 13:44:55 -0600 |
|---|---|---|
| committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-10-31 15:49:25 -0700 |
| commit | 227d782a1bddfa1393cddd0c73c0288e18645c47 (patch) | |
| tree | ceb63019e4beeb4ed841aeb090f89cd390a7c282 | |
| parent | 5287602a4161cd036e3125cda09ba750190a0b47 (diff) | |
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.
(cherry picked from commit d5c17f585a240be9f9135975738e62951cde3353)
| -rw-r--r-- | hw/xquartz/GL/visualConfigs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/xquartz/GL/visualConfigs.c b/hw/xquartz/GL/visualConfigs.c index 196989aca..12e9777db 100644 --- a/hw/xquartz/GL/visualConfigs.c +++ b/hw/xquartz/GL/visualConfigs.c @@ -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; |
