vulkan: fix incorrect loadOp

This commit is contained in:
niki
2023-02-11 20:20:49 +01:00
parent d06926eae9
commit b04ba7ecb4
+1 -1
View File
@@ -261,7 +261,7 @@ void Graphics::clear(const std::vector<OptionalColorD> &colors, OptionalInt sten
if (depth.hasValue)
{
renderPassState.renderPassConfiguration.staticData.depthStencilAttachment.depthLoadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
renderPassState.renderPassConfiguration.staticData.depthStencilAttachment.depthLoadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
renderPassState.clearColors[colors.size()].depthStencil.depth = depth.value;
}