[Bf-blender-cvs] [89e22a99e7b] compositor-full-frame: Fix incorrect element size assertion

Manuel Castilla noreply at git.blender.org
Mon May 31 11:31:51 CEST 2021


Commit: 89e22a99e7b8f03cb1bd4ecb144181e67fee6d1d
Author: Manuel Castilla
Date:   Thu May 27 23:26:32 2021 +0200
Branches: compositor-full-frame
https://developer.blender.org/rB89e22a99e7b8f03cb1bd4ecb144181e67fee6d1d

Fix incorrect element size assertion

===================================================================

M	source/blender/compositor/intern/COM_buffer_util.cc

===================================================================

diff --git a/source/blender/compositor/intern/COM_buffer_util.cc b/source/blender/compositor/intern/COM_buffer_util.cc
index a463b73db70..eb7bf63ef0a 100644
--- a/source/blender/compositor/intern/COM_buffer_util.cc
+++ b/source/blender/compositor/intern/COM_buffer_util.cc
@@ -33,7 +33,7 @@ namespace blender::compositor {
   BLI_assert((dst_buf)->get_rect().ymax >= (dst_y) + BLI_rcti_size_y(&(src_rect)))
 
 #define ASSERT_VALID_ELEM_SIZE(buf, channel_offset, elem_size) \
-  BLI_assert((buf)->get_num_channels() <= (channel_offset) + (elem_size))
+  BLI_assert((buf)->get_num_channels() >= (channel_offset) + (elem_size))
 
 static void copy_single_elem(MemoryBuffer *dst,
                              const int dst_channel_offset,



More information about the Bf-blender-cvs mailing list