mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
327617ded4
ForwardPipeline::initialize may be invoked twice.
```cpp
using RenderFlowList = ccstd::vector<IntrusivePtr<RenderFlow>>;
RenderFlowList _flows;
bool RenderPipeline::initialize(const RenderPipelineInfo &info) {
_flows = info.flows; // initialize will be invoked twice, this assignment will trigger old RenderFlow::~RenderFlow but without calling `destroy` to release memory.
_tag = info.tag;
return true;
}
```