diff --git a/prog/engine/drv/drv3d_Metal/d3d_rtarget.mm b/prog/engine/drv/drv3d_Metal/d3d_rtarget.mm index 3876e4263..6ffd98d32 100644 --- a/prog/engine/drv/drv3d_Metal/d3d_rtarget.mm +++ b/prog/engine/drv/drv3d_Metal/d3d_rtarget.mm @@ -722,10 +722,11 @@ static MTLStoreAction decodeStoreAction(RenderPass::Subpass &pass, uint32_t stor RenderPass::Subpass::PassInput input; input.dst_slot = bind.slot + rp_desc.subpassBindingOffset; input.src_slot = bind.target; - pass.inputs.push_back(input); if (bind.slot == RenderPassExtraIndexes::RP_SLOT_DEPTH_STENCIL) pass.depth_stencil = attach; + else + pass.inputs.push_back(input); } else if (subpass_action == RP_TA_SUBPASS_RESOLVE) {