aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/gl_nir_lower_samplers_as_deref.c')
-rw-r--r--src/compiler/glsl/gl_nir_lower_samplers_as_deref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
index f3f2dd22df2..96c751a1284 100644
--- a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
+++ b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
@@ -99,7 +99,7 @@ remove_struct_derefs_prep(nir_deref_instr **p, char **name,
remove_struct_derefs_prep(&p[1], name, location, type);
- *type = glsl_array_type(*type, length);
+ *type = glsl_array_type(*type, length, glsl_get_explicit_stride(cur->type));
break;
}