diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c index 12dfdad319ee..812cc51e0b79 100644 --- a/source/blender/gpu/intern/gpu_shader.c +++ b/source/blender/gpu/intern/gpu_shader.c @@ -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;