summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-04-14 11:40:38 +1000
committerDave Airlie <airlied@linux.ie>2008-04-15 11:48:03 +1000
commit738aea7a94bf07a986c7b7d83346b86337d65d1e (patch)
tree08a04cef8df771d200aefe2881b46ee55c565f90
parentd6916b149d2fac9812d7d43a8a40df0b0836550f (diff)
glcore: make visualRating GLX_NONE - note GLX_NONE is not == 0
Finally glxinfo returns the set of 3 visuals and glxgears works again for me on sw rendering (cherry picked from commit 97565c0f394f16d042c614695c8b7b4ac354f2a3)
-rw-r--r--GL/glx/glxglcore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/GL/glx/glxglcore.c b/GL/glx/glxglcore.c
index 16064a96d..1eac0eb3e 100644
--- a/GL/glx/glxglcore.c
+++ b/GL/glx/glxglcore.c
@@ -320,6 +320,7 @@ createFBConfigsForVisual(__GLXscreen *screen, ScreenPtr pScreen,
config->next = xcalloc(sizeof(*config), 1);
config = config->next;
+ config->visualRating = GLX_NONE;
config->visualType = glx_visual_types[visual->class];
config->xRenderable = GL_TRUE;
config->drawableType = GLX_WINDOW_BIT | GLX_PIXMAP_BIT;