From 227d782a1bddfa1393cddd0c73c0288e18645c47 Mon Sep 17 00:00:00 2001 From: George Peter Staplin Date: Thu, 30 Oct 2008 13:44:55 -0600 Subject: [PATCH] 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) --- hw/xquartz/GL/visualConfigs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;