Skip to content

Commit c374b33

Browse files
committed
UPBGE: Fix GG.shaders.instancing not deleted.
1 parent 9209f88 commit c374b33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/blender/gpu/intern/gpu_shader.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,11 @@ void GPU_shader_free_builtin_shaders(void)
899899
GG.shaders.smoke_coba = NULL;
900900
}
901901

902+
if (GG.shaders.instancing) {
903+
GPU_shader_free(GG.shaders.instancing);
904+
GG.shaders.instancing = NULL;
905+
}
906+
902907
if (GG.shaders.draw_frame_buffer) {
903908
GPU_shader_free(GG.shaders.draw_frame_buffer);
904909
GG.shaders.draw_frame_buffer = NULL;

0 commit comments

Comments
 (0)