egl: Drop duplicate check on EGLSync type
authorChad Versace <chadversary@chromium.org>
Tue, 27 Sep 2016 20:27:19 +0000 (13:27 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 4 Oct 2016 21:11:29 +0000 (14:11 -0700)
commitadd01add1bb91af64ad5cfa671c99bee72016773
tree18ebb817579636810f8678cb626e1131025f7722
parent02e4f1cb43c548a4ff27fb8d7bc9255bb4488c1e
egl: Drop duplicate check on EGLSync type

_eglInitSync checked that the display supported the sync type (such as
EGL_SYNC_FENCE), and did it wrong. When the check failed it emitted
EGL_BAD_ATTRIBUTE, but sometimes EGL_BAD_PARAMETER is needed.

_eglCreateSync already does the error checking, and it does it right.

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