From e5aaa9d38769187757a34cd6eda8b6c61dbf6c16 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 25 Dec 2013 20:34:58 +0600 Subject: Code cleanup: no need to switch to threaded alloc, it's done by task pool --- source/blender/editors/mask/mask_draw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index 6b60e5ed390..4cf4cd1ddba 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -590,8 +590,6 @@ static float *threaded_mask_rasterize(Mask *mask, const int width, const int hei task_pool = BLI_task_pool_create(task_scheduler, &state); - BLI_begin_threaded_malloc(); - scanlines_per_thread = height / num_threads; for (i = 0; i < num_threads; i++) { ThreadedMaskRasterizeData *data = MEM_mallocN(sizeof(ThreadedMaskRasterizeData), @@ -614,7 +612,6 @@ static float *threaded_mask_rasterize(Mask *mask, const int width, const int hei /* Free memory. */ BLI_task_pool_free(task_pool); - BLI_end_threaded_malloc(); BKE_maskrasterize_handle_free(handle); return buffer; -- cgit v1.2.3