diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-30 15:55:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-30 15:55:41 +0400 |
commit | ae662b823552c7962e5f3dbf9dbf298b319d2d26 (patch) | |
tree | 4c3dadd54444ffab8a1056fe65cb6d164814dc4c /source/blender | |
parent | 5251a9b3bf39c1520bdad4c8aa3f6273def76c77 (diff) |
bugfix [#23105] Scene strips renders out darker (no gamma corection?)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index f55cae7eaef..4f3ad50e294 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -1882,8 +1882,12 @@ static ImBuf * seq_render_scene_strip_impl( IMB_saveiff(imb, "/tmp/foo.image", IB_rect | IB_metadata); IMB_freeImBuf(imb); } */ - - } else if (rres.rect32) { + + /* float buffers in the sequencer are not linear */ + ibuf->profile= IB_PROFILE_LINEAR_RGB; + IMB_convert_profile(ibuf, IB_PROFILE_SRGB); + } + else if (rres.rect32) { ibuf= IMB_allocImBuf(rres.rectx, rres.recty, 32, IB_rect, 0); memcpy(ibuf->rect, rres.rect32, 4*rres.rectx*rres.recty); } |