diff options
Diffstat (limited to 'src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs b/src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs index fc075a264..cb1a7c3ab 100644 --- a/src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs +++ b/src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs | |||
@@ -1,7 +1,6 @@ | |||
1 | using Ryujinx.Common.Memory; | 1 | using Ryujinx.Common.Memory; |
2 | using Ryujinx.Memory; | 2 | using Ryujinx.Memory; |
3 | using System; | 3 | using System; |
4 | using System.Buffers; | ||
5 | using System.Runtime.CompilerServices; | 4 | using System.Runtime.CompilerServices; |
6 | using System.Runtime.InteropServices; | 5 | using System.Runtime.InteropServices; |
7 | 6 | ||
@@ -145,9 +144,9 @@ namespace Ryujinx.Graphics.Device | |||
145 | } | 144 | } |
146 | else | 145 | else |
147 | { | 146 | { |
148 | IMemoryOwner<byte> memoryOwner = ByteMemoryPool.Rent(size); | 147 | MemoryOwner<byte> memoryOwner = MemoryOwner<byte>.Rent(size); |
149 | 148 | ||
150 | GetSpan(va, size).CopyTo(memoryOwner.Memory.Span); | 149 | ReadImpl(va, memoryOwner.Span); |
151 | 150 | ||
152 | return new WritableRegion(this, va, memoryOwner, tracked: true); | 151 | return new WritableRegion(this, va, memoryOwner, tracked: true); |
153 | } | 152 | } |