diff options
author | Berkan Diler <b.diler@gmx.de> | 2022-02-22 14:32:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 10:32:10 -0300 |
commit | 644b497df17bae1790c31e23b04f20ff368d4e9e (patch) | |
tree | a0e57b35f4a800b1f1eb910a5d9331c911b5d2be /Ryujinx.Graphics.OpenGL/Program.cs | |
parent | fb935fd201a347de07762d14f81a985c8cdeb360 (diff) |
Collapse AsSpan().Slice(..) calls into AsSpan(..) (#3145)1.1.47
* Collapse AsSpan().Slice(..) calls into AsSpan(..)
Less code and a bit faster
* Collapse an Array.Clear(array, 0, array.Length) call to Array.Clear(array)
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Program.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Program.cs b/Ryujinx.Graphics.OpenGL/Program.cs index 838162cc..d2b559a8 100644 --- a/Ryujinx.Graphics.OpenGL/Program.cs +++ b/Ryujinx.Graphics.OpenGL/Program.cs @@ -124,7 +124,7 @@ namespace Ryujinx.Graphics.OpenGL GL.GetProgramBinary(Handle, size, out _, out BinaryFormat binFormat, data); - BinaryPrimitives.WriteInt32LittleEndian(data.AsSpan().Slice(size, 4), (int)binFormat); + BinaryPrimitives.WriteInt32LittleEndian(data.AsSpan(size, 4), (int)binFormat); return data; } |