[Bf-blender-cvs] [a3610c451aa] master: Fix Compositor stack use after scope

Manuel Castilla noreply at git.blender.org
Wed Oct 13 23:46:46 CEST 2021


Commit: a3610c451aa11ac6e8756a14db3af4ed5676e794
Author: Manuel Castilla
Date:   Wed Oct 13 23:02:03 2021 +0200
Branches: master
https://developer.blender.org/rBa3610c451aa11ac6e8756a14db3af4ed5676e794

Fix Compositor stack use after scope

Caused by {rBf84fb12f5d72433780a96} after changing
`get_areas_to_render` to return a vector instead of a span.

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

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

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

diff --git a/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc b/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
index 80c10aec00a..1295437785f 100644
--- a/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
+++ b/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
@@ -122,7 +122,7 @@ void FullFrameExecutionModel::render_operation(NodeOperation *op)
     Vector<MemoryBuffer *> input_bufs = get_input_buffers(op, output_x, output_y);
     const int op_offset_x = output_x - op->get_canvas().xmin;
     const int op_offset_y = output_y - op->get_canvas().ymin;
-    Span<rcti> areas = active_buffers_.get_areas_to_render(op, op_offset_x, op_offset_y);
+    Vector<rcti> areas = active_buffers_.get_areas_to_render(op, op_offset_x, op_offset_y);
     op->render(op_buf, areas, input_bufs);
     DebugInfo::operation_rendered(op, op_buf);



More information about the Bf-blender-cvs mailing list