diff options
author | Brian Paul <brianp@vmware.com> | 2009-10-07 14:43:27 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-10-07 14:43:27 -0600 |
commit | ee3fbe70672f32ae598a0005e027a6883a130e7b (patch) | |
tree | 5f43755de242666450eff12c962fdd641b60038a /src/gallium/state_trackers | |
parent | 9f002e4aaa2d7ea085cd0a3c66ff0fa533905382 (diff) | |
download | external_mesa3d-ee3fbe70672f32ae598a0005e027a6883a130e7b.zip external_mesa3d-ee3fbe70672f32ae598a0005e027a6883a130e7b.tar.gz external_mesa3d-ee3fbe70672f32ae598a0005e027a6883a130e7b.tar.bz2 |
gallium/xlib: call XQueryExtension() in glXQueryExtension()
See bug 24321.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 556eefb..f2881b9 100644 --- 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 */ } |