diff options
author | Tapani Pälli <[email protected]> | 2015-09-25 09:56:39 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-09-25 12:19:36 +0300 |
commit | 266d05a3a0651ac954c91aea12c870940e8a9820 (patch) | |
tree | a081b6403984e1aed44d61047fec46079c4c907b /src | |
parent | e92c35a8724efd36a35ac9106e5977c5ec2cb332 (diff) |
glsl: fix packed varyings interface type and add default case
fixes Piglit test:
arb_program_interface_query/linker/query-varyings.shader_test
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/linker.cpp | 4 |
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, |