mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 04:40:22 +01:00
glsl: Fix leak of linked uniform names at relink/free of the shader_program.
NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit aad3a46ff4)
This commit is contained in:
parent
7861ccbe23
commit
99c0aeb3db
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ private:
|
|||
this->uniforms[id].sampler = ~0;
|
||||
}
|
||||
|
||||
this->uniforms[id].name = strdup(name);
|
||||
this->uniforms[id].name = ralloc_strdup(this->uniforms, name);
|
||||
this->uniforms[id].type = base_type;
|
||||
this->uniforms[id].initialized = 0;
|
||||
this->uniforms[id].num_driver_storage = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue