aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs')
-rw-r--r--src/Ryujinx.Graphics.Device/DeviceMemoryManager.cs5
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 @@
1using Ryujinx.Common.Memory; 1using Ryujinx.Common.Memory;
2using Ryujinx.Memory; 2using Ryujinx.Memory;
3using System; 3using System;
4using System.Buffers;
5using System.Runtime.CompilerServices; 4using System.Runtime.CompilerServices;
6using System.Runtime.InteropServices; 5using 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 }