From ed4c8d6881a1123d59f4865da6d0ceb1b6614c23 Mon Sep 17 00:00:00 2001 From: durswd Date: Tue, 9 Jun 2026 22:06:13 +0900 Subject: [PATCH] Fix to maintain a texture in RenderPass --- src/Metal/LLGI.CommandListMetal.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Metal/LLGI.CommandListMetal.mm b/src/Metal/LLGI.CommandListMetal.mm index a9eb2de0..dfc3f65c 100644 --- a/src/Metal/LLGI.CommandListMetal.mm +++ b/src/Metal/LLGI.CommandListMetal.mm @@ -422,7 +422,7 @@ } else { - rpd.colorAttachments[i].loadAction = MTLLoadActionDontCare; + rpd.colorAttachments[i].loadAction = MTLLoadActionLoad; } } @@ -443,8 +443,8 @@ } else { - rpd.depthAttachment.loadAction = MTLLoadActionDontCare; - rpd.stencilAttachment.loadAction = MTLLoadActionDontCare; + rpd.depthAttachment.loadAction = MTLLoadActionLoad; + rpd.stencilAttachment.loadAction = MTLLoadActionLoad; } renderEncoder_ = [commandBuffer_ renderCommandEncoderWithDescriptor:rpd];