GPU/HW: Depth buffer needs to be a RT in ROV mode

This commit is contained in:
Stenzek 2024-11-27 12:56:01 +10:00
parent d1b904a1da
commit 4edae3cdd0
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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,