mesa: add fallthrough comments to glformats.c
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 03:49:26 +0000 (13:49 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 23:52:52 +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/glformats.c

index 66b29ede67a1bb364734a221e2741a86f3730ea6..252599340aa05f70072f1de109888c356464fa10 100644 (file)
@@ -1886,6 +1886,7 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx,
       case GL_RED:
          if (_mesa_has_rg_textures(ctx))
             return GL_NO_ERROR;
+         /* fallthrough */
       default:
          return GL_INVALID_OPERATION;
       }
@@ -2927,6 +2928,7 @@ _mesa_gles_error_check_format_and_type(const struct gl_context *ctx,
          case GL_RGBA:
             if (_mesa_has_OES_texture_float(ctx) && internalFormat == format)
                break;
+         /* fallthrough */
          default:
             return GL_INVALID_OPERATION;
          }
@@ -2935,6 +2937,7 @@ _mesa_gles_error_check_format_and_type(const struct gl_context *ctx,
       case GL_HALF_FLOAT_OES:
          if (_mesa_has_OES_texture_half_float(ctx) && internalFormat == format)
             break;
+         /* fallthrough */
       default:
          return GL_INVALID_OPERATION;
       }