aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glsl/linker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 9d419ac9d39..75396fb3936 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -3319,8 +3319,12 @@ add_packed_varyings(struct gl_shader_program *shProg, int stage)
switch (var->data.mode) {
case ir_var_shader_in:
iface = GL_PROGRAM_INPUT;
+ break;
case ir_var_shader_out:
iface = GL_PROGRAM_OUTPUT;
+ break;
+ default:
+ unreachable("unexpected type");
}
if (!add_program_resource(shProg, iface, var,
build_stageref(shProg, var->name,