mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 01:29:23 +00:00
d3d12: Fix texture unswizzling
This commit is contained in:
parent
25c09c5088
commit
f31282623a
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ size_t D3D12GSRender::UploadTextures()
|
||||||
|
|
||||||
for (int j = 0; j < m_textures[i].GetWidth(); j++)
|
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
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue