Mesa (master): gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()

Nicolai Hähnle nh at kemper.freedesktop.org
Wed Oct 7 18:39:36 UTC 2009


Module: Mesa
Branch: master
Commit: f9904edf53e1f8be22991c80b4f9a5cb510674df
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9904edf53e1f8be22991c80b4f9a5cb510674df

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Oct  7 07:43:12 2009 -0600

gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()

A little better than leaving the values undefined, I think.
See bug 24321.

---

 src/gallium/state_trackers/glx/xlib/glx_api.c |    8 +++++---
 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 6cd7ede..3277ff5 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;
 }
 




More information about the mesa-commit mailing list