gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
authorBrian Paul <brianp@vmware.com>
Wed, 7 Oct 2009 13:43:12 +0000 (07:43 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 7 Oct 2009 13:45:59 +0000 (07:45 -0600)
A little better than leaving the values undefined, I think.
See bug 24321.

src/gallium/state_trackers/glx/xlib/glx_api.c

index 6cd7ede..3277ff5 100644 (file)
@@ -1309,12 +1309,14 @@ glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
 
 
 Bool
-glXQueryExtension( Display *dpy, int *errorb, int *event )
+glXQueryExtension( Display *dpy, int *errorBase, int *eventBase )
 {
    /* Mesa's GLX isn't really an X extension but we try to act like one. */
    (void) dpy;
-   (void) errorb;
-   (void) event;
+   if (errorBase)
+      *errorBase = 0;
+   if (eventBase)
+      *eventBase = 0;
    return True;
 }