Handle indirect draw counts with non-zero draw starts properly (#2593)

This commit is contained in:
gdkchan 2021-08-29 16:52:38 -03:00 committed by GitHub
parent ade25f4744
commit 548fdab392
5 changed files with 81 additions and 14 deletions

View file

@ -117,7 +117,7 @@ namespace Ryujinx.Cpu
/// <inheritdoc/>
public T Read<T>(ulong va) where T : unmanaged
{
return MemoryMarshal.Cast<byte, T>(GetSpan(va, Unsafe.SizeOf<T>(), true))[0];
return MemoryMarshal.Cast<byte, T>(GetSpan(va, Unsafe.SizeOf<T>()))[0];
}
/// <inheritdoc/>