mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
glsl2: Don't try to assign locations for samplers during linking.
Mesa will do the mapping at _mesa_add_sampler() time. Fixes assertion failures in debug builds, which might have caught real problems with multiple samplers linked in a row.
This commit is contained in:
parent
fe1918c71c
commit
b6ceddc371
1 changed files with 3 additions and 0 deletions
|
|
@ -793,6 +793,9 @@ assign_uniform_locations(struct gl_shader_program *prog)
|
|||
if ((var == NULL) || (var->mode != ir_var_uniform))
|
||||
continue;
|
||||
|
||||
if (var->type->is_sampler())
|
||||
continue;
|
||||
|
||||
const unsigned vec4_slots = (var->component_slots() + 3) / 4;
|
||||
assert(vec4_slots != 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue