Mesa (master): glsl: add fallthrough comment on switch
Tapani Pälli
tpalli at kemper.freedesktop.org
Tue Apr 21 11:40:22 UTC 2015
Module: Mesa
Branch: master
Commit: 5917ca349ae88b35779179a6a0d949ec910bc680
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5917ca349ae88b35779179a6a0d949ec910bc680
Author: Tapani Pälli <tapani.palli at intel.com>
Date: Tue Apr 21 08:25:16 2015 +0300
glsl: add fallthrough comment on switch
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-By: Martin Peres <martin.peres at linux.intel.com>
---
src/glsl/linker.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index b6baa5d..9aa1389 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -2570,7 +2570,8 @@ add_interface_variables(struct gl_shader_program *shProg,
if (var->data.location != SYSTEM_VALUE_VERTEX_ID &&
var->data.location != SYSTEM_VALUE_VERTEX_ID_ZERO_BASE &&
var->data.location != SYSTEM_VALUE_INSTANCE_ID)
- continue;
+ continue;
+ /* FALLTHROUGH */
case ir_var_shader_in:
if (programInterface != GL_PROGRAM_INPUT)
continue;
More information about the mesa-commit
mailing list