mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
glsl: Also strdup the names of uniform list entries for >vec4 types.
Fixes double-free since the fix to free all of the uniform list.
This commit is contained in:
parent
bd7853768d
commit
f1d5a94197
1 changed files with 1 additions and 1 deletions
|
|
@ -843,7 +843,7 @@ assign_uniform_locations(struct gl_shader_program *prog)
|
|||
|
||||
n->u[0].Name = strdup(var->name);
|
||||
for (unsigned j = 1; j < vec4_slots; j++)
|
||||
n->u[j].Name = n->u[0].Name;
|
||||
n->u[j].Name = strdup(var->name);
|
||||
|
||||
hash_table_insert(ht, n, n->u[0].Name);
|
||||
uniforms.push_tail(& n->link);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue