d3d12: Fix texture unswizzling

This commit is contained in:
vlj 2015-06-04 18:20:18 +02:00 committed by Vincent Lejeune
parent 25c09c5088
commit f31282623a

View file

@ -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