Mesa (master): mesa: add fallthrough comments to glformats.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 3 00:33:04 UTC 2020
Module: Mesa
Branch: master
Commit: f931099270497d5ede856fe0cbc35b8b878011b0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f931099270497d5ede856fe0cbc35b8b878011b0
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Wed Jul 1 13:49:26 2020 +1000
mesa: add fallthrough comments to glformats.c
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>
---
src/mesa/main/glformats.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index 66b29ede67a..252599340aa 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -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;
}
More information about the mesa-commit
mailing list