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.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs
index 41629c1d..561f0684 100644
--- a/Ryujinx.Graphics.OpenGL/Renderer.cs
+++ b/Ryujinx.Graphics.OpenGL/Renderer.cs
@@ -93,7 +93,14 @@ namespace Ryujinx.Graphics.OpenGL
public byte[] GetBufferData(BufferHandle buffer, int offset, int size)
{
- return PersistentBuffers.Default.GetBufferData(buffer, offset, size);
+ if (HwCapabilities.UsePersistentBufferForFlush)
+ {
+ return PersistentBuffers.Default.GetBufferData(buffer, offset, size);
+ }
+ else
+ {
+ return Buffer.GetData(buffer, offset, size);
+ }
}
public Capabilities GetCapabilities()