From 986a39fcfb64f568a8f018368e55d6dcd085c735 Mon Sep 17 00:00:00 2001 From: vlj Date: Sat, 23 May 2015 18:50:20 +0200 Subject: [PATCH] d3d12: clean upload command lists as well --- rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp index b910093d2e..edb91c9592 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp @@ -103,7 +103,7 @@ size_t D3D12GSRender::UploadTextures() src.PlacedFootprint.Footprint.Depth = 1; src.PlacedFootprint.Footprint.Width = m_textures[i].GetWidth(); src.PlacedFootprint.Footprint.Height = m_textures[i].GetHeight(); - src.PlacedFootprint.Footprint.RowPitch = rowPitch; + src.PlacedFootprint.Footprint.RowPitch = (UINT)rowPitch; src.PlacedFootprint.Footprint.Format = dxgiFormat; commandList->CopyTextureRegion(&dst, 0, 0, 0, &src, nullptr); @@ -136,6 +136,7 @@ size_t D3D12GSRender::UploadTextures() commandList->Close(); m_commandQueueGraphic->ExecuteCommandLists(1, (ID3D12CommandList**)&commandList); + getCurrentResourceStorage().m_inflightCommandList.push_back(commandList); usedTexture++; }