summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-04-02 12:38:36 -0400
committerKristian Høgsberg <krh@redhat.com>2008-04-02 12:38:36 -0400
commitb13ab156894074fb38cc812738bc7aeeebd9614d (patch)
treecf3e23d2a1d1aab89d5e4d49cdee1055d426952c
parentb31de6a59044f91f8230aa581c9ca8540289c168 (diff)
dri2: Unbreak glcore visual setup.
-rw-r--r--GL/glx/glxglcore.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/GL/glx/glxglcore.c b/GL/glx/glxglcore.c
index bbfa02b79..972ab88e6 100644
--- a/GL/glx/glxglcore.c
+++ b/GL/glx/glxglcore.c
@@ -308,10 +308,9 @@ static const int glx_visual_types[] = {
static __GLXconfig *
createFBConfigsForVisual(__GLXscreen *screen, ScreenPtr pScreen,
- VisualPtr visual, __GLXconfig *tail)
+ VisualPtr visual, __GLXconfig *config)
{
int back, depth, stencil;
- __GLXconfig *config;
/* FIXME: Ok, I'm making all this up... anybody has a better idea? */
@@ -347,7 +346,7 @@ createFBConfigsForVisual(__GLXscreen *screen, ScreenPtr pScreen,
config->indexBits = config->colorIndexMode ? visual->nplanes : 0;
}
- return tail;
+ return config;
}
static void