diff options
Diffstat (limited to 'src/compiler/nir/nir_lower_samplers.c')
-rw-r--r-- | src/compiler/nir/nir_lower_samplers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_samplers.c b/src/compiler/nir/nir_lower_samplers.c index e878edd9b54..9debfb2eaf9 100644 --- a/src/compiler/nir/nir_lower_samplers.c +++ b/src/compiler/nir/nir_lower_samplers.c @@ -140,14 +140,14 @@ lower_sampler(nir_tex_instr *instr, const struct gl_shader_program *shader_progr instr->texture_array_size = array_elements; } - if (location > shader_program->NumUniformStorage - 1 || - !shader_program->UniformStorage[location].opaque[stage].active) { + if (location > shader_program->data->NumUniformStorage - 1 || + !shader_program->data->UniformStorage[location].opaque[stage].active) { assert(!"cannot return a sampler"); return; } instr->texture_index += - shader_program->UniformStorage[location].opaque[stage].index; + shader_program->data->UniformStorage[location].opaque[stage].index; instr->sampler_index = instr->texture_index; |