glx: Use __glXSendError instead of open-coding it
authorAdam Jackson <ajax@redhat.com>
Tue, 14 Nov 2017 20:13:02 +0000 (15:13 -0500)
committerAdam Jackson <ajax@redhat.com>
Fri, 1 Dec 2017 20:46:46 +0000 (15:46 -0500)
commit75d5d22fb790d856809a9dd896ffc22a268d1d96
treef877671b7df53ec2ef745905ae3ea67724d14674
parentbcb15bee52aff0faae37d4b933f462735ccb918b
glx: Use __glXSendError instead of open-coding it

This also fixes a bug, the error path through MakeCurrent didn't
translate the error code by the extension's error base.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/glxcmds.c
src/glx/glxcurrent.c