Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-05 07:55:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-05 07:58:31 +0400
commita1f8cb6dbb196026a7c8bf0794959ac7bf372cf7 (patch)
treeb0490f62b49680b4703c272d52eed45a68262c79 /source/blender/blenlib/BLI_bitmap.h
parentde280ffa32e48f1526ffe259d448673f1019ad0f (diff)
Fix T40423: UV Editing 'Draw Other Objects' fails with Cycles
Diffstat (limited to 'source/blender/blenlib/BLI_bitmap.h')
-rw-r--r--source/blender/blenlib/BLI_bitmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_bitmap.h b/source/blender/blenlib/BLI_bitmap.h
index cf10fe53a5d..3d56156bfc1 100644
--- a/source/blender/blenlib/BLI_bitmap.h
+++ b/source/blender/blenlib/BLI_bitmap.h
@@ -55,6 +55,10 @@ typedef unsigned int BLI_bitmap;
((BLI_bitmap *)MEM_callocN(BLI_BITMAP_SIZE(_tot), \
_alloc_string))
+/* allocate a bitmap on the stack */
+#define BLI_BITMAP_NEW_ALLOCA(_tot) \
+ ((BLI_bitmap *)memset(alloca(BLI_BITMAP_SIZE(_tot)), 0, BLI_BITMAP_SIZE(_tot)))
+
/* get the value of a single bit at '_index' */
#define BLI_BITMAP_GET(_bitmap, _index) \
((_bitmap)[(_index) >> BLI_BITMAP_POWER] & \