summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-12-01 10:57:24 -0800
committerChad Versace <[email protected]>2016-12-01 10:57:24 -0800
commit2ba4c7e1548c6251085cd75563c182cc6708eaab (patch)
tree143a457f3e558473e6a83ddd6e8b440e9f656065 /src
parentcce04a463089ef3ce39df3e2ae25066c2e1ddfdf (diff)
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 <[email protected]> Tested-by: Rafael Antognolli <[email protected]> Reviewed-by: Chad Versace <[email protected]> Tested-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/egl/main/eglsync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/main/eglsync.c b/src/egl/main/eglsync.c
index 005cb31fc31..7b2c882d813 100644
--- a/src/egl/main/eglsync.c
+++ b/src/egl/main/eglsync.c
@@ -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;
}