egl: Fix an error path in eglCreateSync*
authorChad Versace <chadversary@chromium.org>
Tue, 27 Sep 2016 20:27:12 +0000 (13:27 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 4 Oct 2016 21:11:28 +0000 (14:11 -0700)
commitf2c2f43d4ea2948e8fd9be1ab192664df262c0f4
tree85d5c11af1a5768fca28f70447bb7f1b1fc73fb9
parent69adb9a778470b1717e619e38aebb47a28031756
egl: Fix an error path in eglCreateSync*

When the user called eglCreateSync64KHR on a display without
EGL_KHR_cl_event2 (the only extension that exposes it), we returned
EGL_NO_SYNC but did not update the error code.

We also did the same for eglCreateSync on a display without EGL 1.5.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/eglapi.c