egl: fix error handling in _eglCreateSync
authorTapani Pälli <tapani.palli@intel.com>
Tue, 25 Oct 2016 08:29:53 +0000 (11:29 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 27 Oct 2016 04:06:41 +0000 (07:06 +0300)
commit6bf6fcfcd9a916530bfbd47351bd1f0df47c4a3d
tree762fb32154b03a5a484a739cd78decf18df05933
parentca035006c86a5055c8e640f49c858f04770681eb
egl: fix error handling in _eglCreateSync

EGL specification requires context to be current only when sync
type matches EGL_SYNC_FENCE_KHR.

Fixes 25 failing dEQP tests:
   dEQP-EGL.functional.reusable_sync.*

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98339
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglapi.c