diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-25 18:34:58 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-25 18:35:20 +0400 |
commit | e5aaa9d38769187757a34cd6eda8b6c61dbf6c16 (patch) | |
tree | 60226e7c9b7179344d5238bf4e70ec1a8d2ace65 /source/blender/editors/mask | |
parent | 64aef25b8359d196b1246da4b202c2c27e54efb9 (diff) |
Code cleanup: no need to switch to threaded alloc, it's done by task pool
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r-- | source/blender/editors/mask/mask_draw.c | 3 |
1 files changed, 0 insertions, 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; |