Browse Source

vulkan: fix incorrect loadOp

niki 2 years ago
parent
commit
b04ba7ecb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/vulkan/Graphics.cpp

+ 1 - 1
src/modules/graphics/vulkan/Graphics.cpp

@@ -261,7 +261,7 @@ void Graphics::clear(const std::vector<OptionalColorD> &colors, OptionalInt sten
 
 
 		if (depth.hasValue)
 		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;
 			renderPassState.clearColors[colors.size()].depthStencil.depth = depth.value;
 		}
 		}