mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 13:00:42 +02:00
free shProg->Attributes in _mesa_free_shader_program_data()
This commit is contained in:
parent
fe16b9f663
commit
4b7c6fc5a6
1 changed files with 5 additions and 0 deletions
|
|
@ -119,6 +119,11 @@ _mesa_free_shader_program_data(GLcontext *ctx,
|
|||
|
||||
_mesa_clear_shader_program_data(ctx, shProg);
|
||||
|
||||
if (shProg->Attributes) {
|
||||
_mesa_free_parameter_list(shProg->Attributes);
|
||||
shProg->Attributes = NULL;
|
||||
}
|
||||
|
||||
/* detach shaders */
|
||||
for (i = 0; i < shProg->NumShaders; i++) {
|
||||
_mesa_reference_shader(ctx, &shProg->Shaders[i], NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue