From 4edae3cdd09e7d6b163b0d468fe0cea6342785f1 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 27 Nov 2024 12:56:01 +1000 Subject: [PATCH] GPU/HW: Depth buffer needs to be a RT in ROV mode --- src/core/gpu_hw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 5d940c9cf..3a81f53d5 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -862,7 +862,7 @@ bool GPU_HW::CreateBuffers(Error* error) const GPUTexture::Flags vram_texture_flags = m_use_rov_for_shader_blend ? GPUTexture::Flags::AllowBindAsImage : GPUTexture::Flags::None; const GPUTexture::Type depth_texture_type = - m_use_rov_for_shader_blend ? GPUTexture::Type::Texture : GPUTexture::Type::DepthStencil; + m_use_rov_for_shader_blend ? GPUTexture::Type::RenderTarget : GPUTexture::Type::DepthStencil; if (!(m_vram_texture = g_gpu_device->FetchTexture(texture_width, texture_height, 1, 1, samples, GPUTexture::Type::RenderTarget,