From 7755e238d33871090a974c0661764cf58cfa2c7a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 19 Oct 2020 11:46:43 +1000 Subject: [PATCH] GPU/Vulkan: Fix depth not being updated with VRAM writes Fixes menu not showing in Dragon Quest VII. --- src/core/gpu_hw_vulkan.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/gpu_hw_vulkan.cpp b/src/core/gpu_hw_vulkan.cpp index 3074846bd..140738033 100644 --- a/src/core/gpu_hw_vulkan.cpp +++ b/src/core/gpu_hw_vulkan.cpp @@ -796,8 +796,7 @@ bool GPU_HW_Vulkan::CompilePipelines() gpbuilder.SetFragmentShader(fs); for (u8 depth_test = 0; depth_test < 2; depth_test++) { - gpbuilder.SetDepthState((depth_test != 0), true, - (depth_test != 0) ? VK_COMPARE_OP_GREATER_OR_EQUAL : VK_COMPARE_OP_ALWAYS); + gpbuilder.SetDepthState(true, true, (depth_test != 0) ? VK_COMPARE_OP_GREATER_OR_EQUAL : VK_COMPARE_OP_ALWAYS); m_vram_write_pipelines[depth_test] = gpbuilder.Create(device, pipeline_cache, false); if (m_vram_write_pipelines[depth_test] == VK_NULL_HANDLE) {