mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
glx: Propagate failures from SendMakeCurrentRequest where possible
Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
68412d5006
commit
d101204c23
1 changed files with 4 additions and 3 deletions
|
|
@ -132,6 +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;
|
||||
|
||||
if (old != &dummyContext && !old->isDirect && old->psc->dpy == dpy) {
|
||||
tag = old->currentContextTag;
|
||||
|
|
@ -140,8 +141,8 @@ indirect_bind_context(struct glx_context *gc, struct glx_context *old,
|
|||
tag = 0;
|
||||
}
|
||||
|
||||
SendMakeCurrentRequest(dpy, opcode, gc->xid, tag, draw, read,
|
||||
&gc->currentContextTag);
|
||||
ret = SendMakeCurrentRequest(dpy, opcode, gc->xid, tag, draw, read,
|
||||
&gc->currentContextTag);
|
||||
|
||||
if (!IndirectAPI)
|
||||
IndirectAPI = __glXNewIndirectAPI();
|
||||
|
|
@ -154,7 +155,7 @@ indirect_bind_context(struct glx_context *gc, struct glx_context *old,
|
|||
__glXInitVertexArrayState(gc);
|
||||
}
|
||||
|
||||
return Success;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue