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
This commit is contained in:
Dave Airlie 2008-04-14 11:40:38 +10:00
parent c61087c827
commit 97565c0f39

View File

@ -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;