egl: un-fallthrough sync attr parsing

Doesn't work so well when you start having more than one possible
attrib.  Prep-work for next patch.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Tested-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
Rob Clark 2016-12-01 10:57:24 -08:00 committed by Chad Versace
parent cce04a4630
commit 2ba4c7e154
1 changed files with 3 additions and 3 deletions

View File

@ -55,11 +55,11 @@ _eglParseSyncAttribList(_EGLSync *sync, const EGLAttrib *attrib_list)
case EGL_CL_EVENT_HANDLE_KHR:
if (sync->Type == EGL_SYNC_CL_EVENT_KHR) {
sync->CLEvent = val;
break;
} else {
err = EGL_BAD_ATTRIBUTE;
}
/* fall through */
break;
default:
(void) val;
err = EGL_BAD_ATTRIBUTE;
break;
}