diff options
author | Eric Engestrom <[email protected]> | 2018-10-28 18:20:20 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-10-30 18:10:59 +0000 |
commit | ea738a91de4f418d371b76d93de2d326ab613b42 (patch) | |
tree | 9f68f228dc7d04af697f3bec28db31507ad60a80 /src/egl/main | |
parent | d0d6ec549db243c95e9e8c949eabb247c7b87ac7 (diff) |
egl: add messages to a few assert() and turn a couple into unreachable()
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/eglconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 0456adf3caa..a346f937bf3 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -327,7 +327,7 @@ _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching) valid = EGL_FALSE; break; default: - assert(0); + unreachable("check _eglValidationTable[]"); break; } break; @@ -353,7 +353,7 @@ _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching) EGL_OPENGL_BIT; break; default: - assert(0); + unreachable("check _eglValidationTable[]"); mask = 0; break; } |