correct Read12Bpp function

This commit is contained in:
greggameplayer 2018-07-22 05:17:45 +02:00 committed by GitHub
parent 58f179fbe7
commit 49c3d94a82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,9 +279,11 @@ namespace Ryujinx.HLE.Gpu.Texture
{
long Offset = (uint)Swizzle.GetSwizzleOffset(X, Y);
long Pixel = CpuMem.ReadInt64Unchecked(Position + Offset);
long PxLow = CpuMem.ReadInt64Unchecked(Position + Offset);
int PxHigh = CpuMem.ReadInt32Unchecked(Position + Offset + 8);
*(long*)(BuffPtr + OutOffs) = Pixel;
*(long*)(BuffPtr + OutOffs) = PxLow;
*(int*)(BuffPtr + OutOffs + 8) = PxHigh;
OutOffs += 12;
}