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:
parent
cce04a4630
commit
2ba4c7e154
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue