st: Fixes warning [-Wimplicit-fallthrough] in st_texture.c
Warning message: ../src/mesa/state_tracker/st_texture.c:190:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18204>
This commit is contained in:
@@ -186,7 +186,7 @@ st_gl_texture_dims_to_pipe_dims(GLenum texture,
|
||||
*layersOut = util_align_npot(depthIn, 6);
|
||||
break;
|
||||
default:
|
||||
assert(0 && "Unexpected texture in st_gl_texture_dims_to_pipe_dims()");
|
||||
unreachable("Unexpected texture in st_gl_texture_dims_to_pipe_dims()");
|
||||
case GL_TEXTURE_3D:
|
||||
case GL_PROXY_TEXTURE_3D:
|
||||
*widthOut = widthIn;
|
||||
|
Reference in New Issue
Block a user