Fix T47992: Stereo 3D Anaglyph rendered Images saved too light
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 26 Apr 2016 15:15:33 +0000 (17:15 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 26 Apr 2016 15:15:33 +0000 (17:15 +0200)
source/blender/imbuf/intern/stereoimbuf.c

index 19edce3da3bbd4aa2751270506b4fe285fbfd262..a55cef609436bfb23594df3b1eb33c26ce91792f 100644 (file)
@@ -719,6 +719,9 @@ ImBuf *IMB_stereo3d_ImBuf(ImageFormatData *im_format, ImBuf *ibuf_left, ImBuf *i
        IMB_stereo3d_write_dimensions(im_format->stereo3d_format.display_mode, false, ibuf_left->x, ibuf_left->y, &width, &height);
        ibuf_stereo = IMB_allocImBuf(width, height, ibuf_left->planes, (is_float ? IB_rectfloat : IB_rect));
 
+       ibuf_stereo->rect_colorspace = ibuf_left->rect_colorspace;
+       ibuf_stereo->float_colorspace = ibuf_left->float_colorspace;
+
        /* copy flags for IB_fields and other settings */
        ibuf_stereo->flags = ibuf_left->flags;