svn merge ^/trunk/blender -r48333:48370
[blender.git] / source / blender / imbuf / intern / allocimbuf.c
index 5dff3e1..93ee5a4 100644 (file)
@@ -41,6 +41,7 @@
 #include "IMB_allocimbuf.h"
 #include "IMB_filetype.h"
 #include "IMB_metadata.h"
+#include "IMB_colormanagement.h"
 
 #include "imbuf.h"
 
@@ -440,7 +441,10 @@ ImBuf *IMB_dupImBuf(ImBuf *ibuf1)
        tbuf.metadata = NULL;
 
        *ibuf2 = tbuf;
-       
+
+       IMB_display_buffer_invalidate(ibuf2);
+       ibuf2->colormanage_flags &= ~ IMB_COLORMANAGED;
+
        return(ibuf2);
 }