From e124962d1513eae6e9ccd2f1c1fcacffb06b8e7c Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 31 Mar 2016 00:47:46 +0200 Subject: [PATCH] Fix depth/stencil clears (already fixed in framebuffer branch) --- GPU/Vulkan/DrawEngineVulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index 4044d3754a..f8ee815a62 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -835,6 +835,7 @@ void DrawEngineVulkan::DoFlush(VkCommandBuffer cmd) { attach[count].aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; attach[count].clearValue = depthValue; attach[count].colorAttachment = 0; + count++; } vkCmdClearAttachments(cmd_, count, attach, 1, &rect);