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>2011-05-13 08:53:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-13 08:53:20 +0400
commit91bddf2b13c61644d60ce909123068609769fbf0 (patch)
tree2fd6ae31c0dca8ee8f8ffb22967829bf67391696 /source/blender/imbuf/intern/allocimbuf.c
parentb73fe01295636aea92bf3076874b5e3cbcba9057 (diff)
remove imbuf crect and profile_filename when building without LCMS
Diffstat (limited to 'source/blender/imbuf/intern/allocimbuf.c')
-rw-r--r--source/blender/imbuf/intern/allocimbuf.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c
index a8b9e21331d..efa37aa1196 100644
--- a/source/blender/imbuf/intern/allocimbuf.c
+++ b/source/blender/imbuf/intern/allocimbuf.c
@@ -84,17 +84,19 @@ void imb_freerectfloatImBuf(ImBuf *ibuf)
void imb_freerectImBuf(ImBuf *ibuf)
{
if(ibuf==NULL) return;
-
+
+#ifdef WITH_LCMS
if(ibuf->crect)
MEM_freeN(ibuf->crect);
+ ibuf->crect= NULL;
+#endif
if(ibuf->rect && (ibuf->mall & IB_rect))
MEM_freeN(ibuf->rect);
+ ibuf->rect= NULL;
imb_freemipmapImBuf(ibuf);
-
- ibuf->rect= NULL;
- ibuf->crect= NULL;
+
ibuf->mall &= ~IB_rect;
}