glx: fix error code when there is no context bound
authorBernard Kilarski <bernard.r.kilarski@intel.com>
Tue, 7 Jun 2016 10:33:33 +0000 (13:33 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 15 Aug 2016 06:24:10 +0000 (09:24 +0300)
commit2e3f067458e4a70da91b27fab61ef3d292ded4cf
tree2c281b1bc75c9b14ae64c672e9c2aa26298577c9
parent312ece9cd773553a8a45a5d81edc7c09032ff4f1
glx: fix error code when there is no context bound

v2: change all related NULL checks to check against dummyContext
v3: really check for dummyContext *only* when ctx was from
    __glXGetCurrentContext
v4: cover more checks, add dummyBuffer, dummyVtable (Emil)

Signed-off-by: Bernard Kilarski <bernard.r.kilarski@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "11.2" <mesa-stable@lists.freedesktop.org>
src/glx/glx_error.c
src/glx/glx_pbuffer.c
src/glx/glxcmds.c
src/glx/query_renderer.c
src/glx/tests/fake_glx_screen.cpp