mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 17:40:32 +01:00
mesa/xlib: call XQueryExtension() in glXQueryExtension()
See bug 24321.
This commit is contained in:
parent
7dd2c0afd6
commit
9f002e4aaa
1 changed files with 6 additions and 4 deletions
|
|
@ -1639,13 +1639,15 @@ Fake_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
|
|||
static Bool
|
||||
Fake_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 */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue