Paint Vertex Mode: Fix shader not free.
authorClément Foucault <foucault.clem@gmail.com>
Wed, 2 May 2018 16:39:44 +0000 (18:39 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 2 May 2018 16:39:53 +0000 (18:39 +0200)
source/blender/draw/modes/paint_vertex_mode.c

index a48effa4bfc2b4c4bc91428823a36ad1e66d79f8..9ff49a276452465de23866f05cfb844dd5a69b13 100644 (file)
@@ -176,6 +176,7 @@ static void PAINT_VERTEX_draw_scene(void *vedata)
 
 static void PAINT_VERTEX_engine_free(void)
 {
+       DRW_SHADER_FREE_SAFE(e_data.vcolor_face_shader);
        DRW_SHADER_FREE_SAFE(e_data.wire_overlay_shader);
 }