d3d12: make depth read optionnal

This commit is contained in:
vlj 2015-05-24 01:49:20 +02:00 committed by Vincent Lejeune
parent 487fd4dc2a
commit 824b9aa628

View file

@ -1419,11 +1419,12 @@ void D3D12GSRender::Flip()
void D3D12GSRender::WriteDepthBuffer() void D3D12GSRender::WriteDepthBuffer()
{ {
if (!Ini.GSDumpDepthBuffer.GetValue())
return;
if (!m_set_context_dma_z) if (!m_set_context_dma_z)
return; return;
u32 address = GetAddress(m_surface_offset_z, m_context_dma_z - 0xfeed0000); u32 address = GetAddress(m_surface_offset_z, m_context_dma_z - 0xfeed0000);
auto ptr = vm::get_ptr<void>(address); auto ptr = vm::get_ptr<void>(address);
D3D12_HEAP_PROPERTIES heapProp = {}; D3D12_HEAP_PROPERTIES heapProp = {};