Pass the visual id to XF86DRICreateContextWithConfig(), not fbconfig id.
authorKristian Høgsberg <krh@redhat.com>
Tue, 6 Nov 2007 16:22:59 +0000 (11:22 -0500)
committerKristian Høgsberg <krh@redhat.com>
Tue, 6 Nov 2007 16:23:27 +0000 (11:23 -0500)
src/glx/x11/glxcmds.c

index cbc566e917a5b438b069100e561f592f8cb429fd..80d46f6b23edfcb80427c89270c801f20d9466e0 100644 (file)
@@ -405,7 +405,7 @@ CreateContext(Display *dpy, XVisualInfo *vis,
 
 
                if (!XF86DRICreateContextWithConfig(dpy, psc->scr,
-                                                   mode->fbconfigID,
+                                                   mode->visualID,
                                                    &gc->hwContextID, &hwContext))
                    /* gah, handle this better */
                    return NULL;