summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-07 07:43:12 -0600
committerBrian Paul <brianp@vmware.com>2009-10-07 07:45:59 -0600
commitf9904edf53e1f8be22991c80b4f9a5cb510674df (patch)
tree983509231031bbb934ec7a6889be09eaf984084a
parent79892e7976fbb91ae426f5868d5f453e977c1f17 (diff)
gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
A little better than leaving the values undefined, I think. See bug 24321.
-rw-r--r--src/gallium/state_trackers/glx/xlib/glx_api.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c
index 6cd7ede31cf..3277ff58a6c 100644
--- a/src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/src/gallium/state_trackers/glx/xlib/glx_api.c
@@ -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;
}