From b04ba7ecb4053ddca2c3bcf5c5f4e8efa3374d16 Mon Sep 17 00:00:00 2001 From: niki Date: Sat, 11 Feb 2023 20:20:49 +0100 Subject: [PATCH] vulkan: fix incorrect loadOp --- src/modules/graphics/vulkan/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/vulkan/Graphics.cpp b/src/modules/graphics/vulkan/Graphics.cpp index 13ceb647d..52ba1bced 100644 --- a/src/modules/graphics/vulkan/Graphics.cpp +++ b/src/modules/graphics/vulkan/Graphics.cpp @@ -261,7 +261,7 @@ void Graphics::clear(const std::vector &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; }