Graphics/ForwardFramePipeline: Fix crash with multiple viewers on a single target
This commit is contained in:
parent
73fc061412
commit
27bc5d48e9
|
|
@ -755,7 +755,7 @@ namespace Nz
|
||||||
mergePass.AddOutput(mergedAttachment);
|
mergePass.AddOutput(mergedAttachment);
|
||||||
mergePass.SetClearColor(0, Color::Black());
|
mergePass.SetClearColor(0, Color::Black());
|
||||||
|
|
||||||
mergePass.SetCommandCallback([&targetViewers](CommandBufferBuilder& builder, const FramePassEnvironment& env)
|
mergePass.SetCommandCallback([targetViewers](CommandBufferBuilder& builder, const FramePassEnvironment& env)
|
||||||
{
|
{
|
||||||
Graphics* graphics = Graphics::Instance();
|
Graphics* graphics = Graphics::Instance();
|
||||||
builder.BindRenderPipeline(*graphics->GetBlitPipeline(false));
|
builder.BindRenderPipeline(*graphics->GetBlitPipeline(false));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue