projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f002e4
)
gallium/xlib: call XQueryExtension() in glXQueryExtension()
author
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 20:43:27 +0000
(14:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 20:43:27 +0000
(14:43 -0600)
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 556eefb1b1787f0fb1b3f64c4f83ce13a7056a9b..f2881b9a31e16b8ac0dc9be3a57c74e77204e198 100644
(file)
--- a/
src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/
src/gallium/state_trackers/glx/xlib/glx_api.c
@@
-1311,13
+1311,15
@@
glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
Bool
glXQueryExtension( Display *dpy, int *errorBase, int *eventBase )
{
+ int op, ev, err;
/* Mesa's GLX isn't really an X extension but we try to act like one. */
- (void) dpy;
+ if (!XQueryExtension(dpy, GLX_EXTENSION_NAME, &op, &ev, &err))
+ ev = err = 0;
if (errorBase)
- *errorBase =
0
;
+ *errorBase =
err
;
if (eventBase)
- *eventBase =
0
;
- return True;
+ *eventBase =
ev
;
+ return True;
/* we're faking GLX so always return success */
}