summaryrefslogtreecommitdiffstats
path: root/src/glx/glx_error.c
Commit message (Collapse)AuthorAgeFilesLines
* glx: Don't use current context in __glXSendErrorMichel Dänzer2016-08-171-3/+1
| | | | | | | | | | | | | | 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>
* glx: fix error code when there is no context boundBernard Kilarski2016-08-151-1/+1
| | | | | | | | | | | | | 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>
* glx: Deliver an xlib style error to the application from an XCB errorIan Romanick2011-12-231-0/+19
| | | | Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
* glx: Make parameter types for __glXSendError match protocol typesIan Romanick2011-12-191-2/+2
| | | | | | | Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net> Cc: Jeremy Huddleston <jeremyhu@apple.com>
* glx: Make __glXSendError available in non-Apple buildsIan Romanick2011-12-191-0/+67
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net> Cc: Jeremy Huddleston <jeremyhu@apple.com>