mesa: update fallthrough comment so gcc can see it
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 06:46:28 +0000 (16:46 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 23:52:53 +0000 (23:52 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>

src/mesa/main/textureview.c

index 6aafeed2d17bad8d407338c9b5de31534457014c..0e3703a44ad0bf244fe8a0b045c2950d8817450f 100644 (file)
@@ -503,7 +503,7 @@ _mesa_set_texture_view_state(struct gl_context *ctx,
    case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
       texObj->NumLevels = 1;
       texObj->ImmutableLevels = 1;
    case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
       texObj->NumLevels = 1;
       texObj->ImmutableLevels = 1;
-      /* fall through to set NumLayers */
+      /* fallthrough - to set NumLayers */
 
    case GL_TEXTURE_2D_ARRAY:
    case GL_TEXTURE_CUBE_MAP_ARRAY:
 
    case GL_TEXTURE_2D_ARRAY:
    case GL_TEXTURE_CUBE_MAP_ARRAY: