mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-30 20:43:05 +00:00
correct Read12Bpp function
This commit is contained in:
parent
58f179fbe7
commit
49c3d94a82
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue