aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Renderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Renderer.cs11
1 files changed, 2 insertions, 9 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs
index 561f0684..c7749228 100644
--- a/Ryujinx.Graphics.OpenGL/Renderer.cs
+++ b/Ryujinx.Graphics.OpenGL/Renderer.cs
@@ -91,16 +91,9 @@ namespace Ryujinx.Graphics.OpenGL
Buffer.Delete(buffer);
}
- public byte[] GetBufferData(BufferHandle buffer, int offset, int size)
+ public ReadOnlySpan<byte> GetBufferData(BufferHandle buffer, int offset, int size)
{
- if (HwCapabilities.UsePersistentBufferForFlush)
- {
- return PersistentBuffers.Default.GetBufferData(buffer, offset, size);
- }
- else
- {
- return Buffer.GetData(buffer, offset, size);
- }
+ return Buffer.GetData(this, buffer, offset, size);
}
public Capabilities GetCapabilities()