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 3c8ef4f0521..d949e3d78f5 100644 --- a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c +++ b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c @@ -328,9 +328,6 @@ gl_nir_lower_samplers_as_deref(nir_shader *shader, state.remap_table = _mesa_hash_table_create(NULL, _mesa_key_hash_string, _mesa_key_string_equal); - shader->info.textures_used = 0; - shader->info.textures_used_by_txf = 0; - nir_foreach_function(function, shader) { if (function->impl) progress |= lower_impl(function->impl, &state);