Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2927
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Jeroen Bakker (jbakker)
on May 9 2022, 9:32 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index e8fb5fb2c45..7ec6ee5183a 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -168,6 +168,7 @@ static void gpu_material_free_single(GPUMaterial *material)
if (material->sss_tex_profile != NULL) {
GPU_texture_free(material->sss_tex_profile);
}
+ MEM_freeN(material);
}
void GPU_material_free(ListBase *gpumaterial)
@@ -176,7 +177,6 @@ void GPU_material_free(ListBase *gpumaterial)
GPUMaterial *material = link->data;
DRW_deferred_shader_remove(material);
gpu_material_free_single(material);
- MEM_freeN(material);
}
BLI_freelistN(gpumaterial);
}
Event Timeline
Jeroen Bakker (jbakker)
created this paste.
May 9 2022, 9:32 AM
Log In to Comment