diff options
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index cfb214e4404..2c42716ade7 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -1866,8 +1866,7 @@ set_shader_inout_layout(struct gl_shader *shader, extern "C" { static void -assign_subroutine_indexes(struct gl_shader *sh, - struct _mesa_glsl_parse_state *state) +assign_subroutine_indexes(struct _mesa_glsl_parse_state *state) { int j, k; int index = 0; @@ -2105,7 +2104,7 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader, shader->IsES = state->es_shader; if (!state->error && !shader->ir->is_empty()) { - assign_subroutine_indexes(shader, state); + assign_subroutine_indexes(state); lower_subroutine(shader->ir, state); if (!ctx->Cache || force_recompile) |