From f31282623a2d074aa5da0dc39730c14cbce73552 Mon Sep 17 00:00:00 2001 From: vlj Date: Thu, 4 Jun 2015 18:20:18 +0200 Subject: [PATCH] d3d12: Fix texture unswizzling --- rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp index 562188b37d..9fcdcce345 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp @@ -239,7 +239,7 @@ size_t D3D12GSRender::UploadTextures() for (int j = 0; j < m_textures[i].GetWidth(); j++) { - dst[(row * rowPitch / 4) + j] = src[LinearToSwizzleAddress(j, i, 0, log2width, log2height, 0)]; + dst[(row * rowPitch / 4) + j] = src[LinearToSwizzleAddress(j, row, 0, log2width, log2height, 0)]; } } else