mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 02:30:12 +01:00
Revert "glsl: clone inputs and outputs during linking"
This reverts commit c2ff3485b3.
Ilia and I noticed a memory leak caused by this patch: at least with
fixed-function programs, we clone things using ProgramResourceList as
the context before reralloc makes it non-NULL.
I believe Tapani found other bugs with these patches, so I'm just going
to revert them for now and let him pursue them further.
This commit is contained in:
parent
cae701fc8e
commit
6218c68bec
1 changed files with 1 additions and 3 deletions
|
|
@ -2637,9 +2637,7 @@ add_interface_variables(struct gl_shader_program *shProg,
|
|||
continue;
|
||||
};
|
||||
|
||||
/* Clone ir_variable data so that backend is able to free memory. */
|
||||
if (!add_program_resource(shProg, programInterface,
|
||||
var->clone(shProg->ProgramResourceList, NULL),
|
||||
if (!add_program_resource(shProg, programInterface, var,
|
||||
build_stageref(shProg, var->name) | mask))
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue