From 324b2da3ec337383fc9bfc18ebdff92a9a4f9324 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 29 Dec 2015 18:09:59 +0100 Subject: [PATCH] d3d12: Recreate RTTs if size doesn't match. Fix Bomberman Ultra --- rpcs3/Emu/RSX/D3D12/D3D12RenderTargetSets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12RenderTargetSets.cpp b/rpcs3/Emu/RSX/D3D12/D3D12RenderTargetSets.cpp index 1afb8ca766..95f50089bd 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12RenderTargetSets.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12RenderTargetSets.cpp @@ -272,7 +272,7 @@ ID3D12Resource *render_targets::bind_address_as_render_targets(ID3D12Device *dev { ComPtr rtt; rtt = It->second.Get(); - if (rtt->GetDesc().Format == dxgi_format) + if (rtt->GetDesc().Format == dxgi_format && rtt->GetDesc().Width == width && rtt->GetDesc().Height == height) { cmdList->ResourceBarrier(1, &CD3DX12_RESOURCE_BARRIER::Transition(rtt.Get(), D3D12_RESOURCE_STATE_GENERIC_READ, D3D12_RESOURCE_STATE_RENDER_TARGET)); return rtt.Get();