DRW: Add batch garbage collection
[blender.git] / source / blender / editors / space_view3d / view3d_draw.c
index 2c831c0..a298e66 100644 (file)
@@ -1450,6 +1450,7 @@ void view3d_main_region_draw(const bContext *C, ARegion *ar)
 
   view3d_draw_view(C, ar);
 
+  DRW_cache_free_old_batches(bmain);
   GPU_free_images_old(bmain);
   GPU_pass_cache_garbage_collect();