projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9904ed
)
mesa/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
author
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 13:45:15 +0000
(07:45 -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/mesa/drivers/x11/fakeglx.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/fakeglx.c
b/src/mesa/drivers/x11/fakeglx.c
index 6449dc88b0d435fe60c50b186ad9ad5dd948df91..2bda9db87cb2605fdd3d9198518246ef5090048b 100644
(file)
--- a/
src/mesa/drivers/x11/fakeglx.c
+++ b/
src/mesa/drivers/x11/fakeglx.c
@@
-1637,12
+1637,14
@@
Fake_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
static Bool
-Fake_glXQueryExtension( Display *dpy, int *error
b, int *event
)
+Fake_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;
}