diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 7489fa368cf..6e9c19a6306 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5582,7 +5582,7 @@ translate_tex_offset(struct st_translate *t, offset.Padding = 0; break; case PROGRAM_INPUT: - imm_src = t->inputs[t->inputMapping[imm_src.Index]]; + imm_src = t->inputs[t->inputMapping[in_offset->index]]; offset.File = imm_src.File; offset.Index = imm_src.Index; offset.SwizzleX = GET_SWZ(in_offset->swizzle, 0); |