glsl-optimizer: Fixed output of texture sampling with texture array lod.

This commit is contained in:
Branimir Karadžić 2021-04-25 18:07:13 -07:00
parent 4a53a3172d
commit 29aa15725d

View File

@ -899,7 +899,13 @@ void ir_print_glsl_visitor::visit(ir_texture *ir)
}
if (is_array && state->EXT_texture_array_enable)
{
if(state->language_version>=130)
{
buffer.asprintf_append ("%s", tex_sampler_dim_name[sampler_dim]);
}
buffer.asprintf_append ("Array");
}
if ((ir->op == ir_tex || ir->op == ir_txl) && is_proj)
buffer.asprintf_append ("Proj");
if (ir->op == ir_txl)