mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
glx: Don't use current context in __glXSendError
There's no guarantee that there is one, and we don't need one anyway.
Fixes piglit tests:
glx@glx-fbconfig-bad
glx@glx_ext_import_context@import context, multi process
glx@glx_ext_import_context@import context, single process
Fixes: 2e3f067458 ("glx: fix error code when there is no context bound")
Cc: "11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
e988999791
commit
4ac640e3d2
1 changed files with 1 additions and 3 deletions
|
|
@ -39,11 +39,9 @@ __glXSendError(Display * dpy, int_fast8_t errorCode, uint_fast32_t resourceID,
|
|||
uint_fast16_t minorCode, bool coreX11error)
|
||||
{
|
||||
struct glx_display *glx_dpy = __glXInitialize(dpy);
|
||||
struct glx_context *gc = __glXGetCurrentContext();
|
||||
xError error;
|
||||
|
||||
assert(glx_dpy);
|
||||
assert(gc != &dummyContext);
|
||||
|
||||
LockDisplay(dpy);
|
||||
|
||||
|
|
@ -59,7 +57,7 @@ __glXSendError(Display * dpy, int_fast8_t errorCode, uint_fast32_t resourceID,
|
|||
error.sequenceNumber = dpy->request;
|
||||
error.resourceID = resourceID;
|
||||
error.minorCode = minorCode;
|
||||
error.majorCode = gc ? gc->majorOpcode : 0;
|
||||
error.majorCode = glx_dpy->majorOpcode;
|
||||
|
||||
_XError(dpy, &error);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue