projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79892e7
)
gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
author
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 13:43:12 +0000
(07:43 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/glx/xlib/glx_api.c
b/src/gallium/state_trackers/glx/xlib/glx_api.c
index 6cd7ede31cf7f1c3e4e26498c978b04f23e016b3..3277ff58a6c794163daa2c44e749c050f74affa5 100644
(file)
--- 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 *error
b, int *event
)
+glXQueryExtension( Display *dpy, int *error
Base, 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;
}