OSDN Git Service

glx: Don't use current context in __glXSendError
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 16 Aug 2016 06:35:44 +0000 (15:35 +0900)
committerMichel Dänzer <michel@daenzer.net>
Wed, 17 Aug 2016 08:16:34 +0000 (17:16 +0900)
commit4ac640e3d207ab84ee4468c7017e5410b7a05d7a
tree49967f6673e9fa1f419e283dae34c8e7b14717da
parente988999791c32fd2594986fde742367d7f71c724
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: 2e3f067458e4 ("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>
src/glx/glx_error.c