xserver: Branch 'xorg-server-1.4-apple'
George Peter Staplin
gstaplin at kemper.freedesktop.org
Thu Oct 30 12:57:11 PDT 2008
hw/xquartz/GL/visualConfigs.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit d5c17f585a240be9f9135975738e62951cde3353
Author: George Peter Staplin <gps at Georges-Workstation.local>
Date: Thu Oct 30 13:44:55 2008 -0600
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.
diff --git a/hw/xquartz/GL/visualConfigs.c b/hw/xquartz/GL/visualConfigs.c
index 196989a..12e9777 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;
More information about the xorg-commit
mailing list