mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
glx: Fix return value from indirect_bind_context
_XReply returns 1 on success, but indirect_bind_context returns 0 on success. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70486 Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
64c081e8b7
commit
1090eb5755
1 changed files with 4 additions and 4 deletions
|
|
@ -132,7 +132,7 @@ indirect_bind_context(struct glx_context *gc, struct glx_context *old,
|
|||
__GLXattribute *state;
|
||||
Display *dpy = gc->psc->dpy;
|
||||
int opcode = __glXSetupForCommand(dpy);
|
||||
Bool ret;
|
||||
Bool sent;
|
||||
|
||||
if (old != &dummyContext && !old->isDirect && old->psc->dpy == dpy) {
|
||||
tag = old->currentContextTag;
|
||||
|
|
@ -141,8 +141,8 @@ indirect_bind_context(struct glx_context *gc, struct glx_context *old,
|
|||
tag = 0;
|
||||
}
|
||||
|
||||
ret = SendMakeCurrentRequest(dpy, opcode, gc->xid, tag, draw, read,
|
||||
&gc->currentContextTag);
|
||||
sent = SendMakeCurrentRequest(dpy, opcode, gc->xid, tag, draw, read,
|
||||
&gc->currentContextTag);
|
||||
|
||||
if (!IndirectAPI)
|
||||
IndirectAPI = __glXNewIndirectAPI();
|
||||
|
|
@ -155,7 +155,7 @@ indirect_bind_context(struct glx_context *gc, struct glx_context *old,
|
|||
__glXInitVertexArrayState(gc);
|
||||
}
|
||||
|
||||
return ret;
|
||||
return !sent;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue