Skip to content

Commit

Permalink
UPBGE: Fix GG.shaders.instancing not deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Nov 13, 2016
1 parent 9209f88 commit c374b33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/blender/gpu/intern/gpu_shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,11 @@ void GPU_shader_free_builtin_shaders(void)
GG.shaders.smoke_coba = NULL;
}

if (GG.shaders.instancing) {
GPU_shader_free(GG.shaders.instancing);
GG.shaders.instancing = NULL;
}

if (GG.shaders.draw_frame_buffer) {
GPU_shader_free(GG.shaders.draw_frame_buffer);
GG.shaders.draw_frame_buffer = NULL;
Expand Down

0 comments on commit c374b33

Please sign in to comment.