diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-12 22:38:01 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-12 22:38:01 +0400 |
commit | 38541284c5eb48eea7530f01e0a111fc80c2c078 (patch) | |
tree | 1cb691b4bc569abea40be419ad51f7f55d4a8eb1 /source | |
parent | 667e7ab3482ed1a054fe54252f4e325c4b18a3f9 (diff) |
Resolve issues with color balance not updating properly in sequencer
when float images are used.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index cee8a4d1612..0432e7a62a2 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -1640,6 +1640,13 @@ static void color_balance(SeqRenderData context, Sequence *seq, ImBuf *ibuf, flo IMB_processor_apply_threaded(ibuf->y, sizeof(ColorBalanceThread), &init_data, color_balance_init_handle, color_balance_do_thread); + /* color balance either happens on float buffer or byte buffer, but never on both, + * free byte buffer if there's float buffer since float buffer would be used for + * color balance in favor of byte buffer + */ + if (ibuf->rect_float && ibuf->rect) + imb_freerectImBuf(ibuf); + if (init_data.mask) IMB_freeImBuf(init_data.mask); } |