diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-01-12 19:12:40 -0300 |
|---|---|---|
| committer | jduncanator <1518948+jduncanator@users.noreply.github.com> | 2020-01-13 09:12:40 +1100 |
| commit | 2bb39ff03e7f8b4f3383d5a5383dc9cbd808f0b6 (patch) | |
| tree | df2313fbfbd257f75bb8425071c0ed19f4ccc0f8 /Ryujinx.Graphics.OpenGL | |
| parent | 88f78ae6c83def8700235e153099190cc4cef890 (diff) | |
Replace glFinish with barrier for WaitForIdle (#878)
Diffstat (limited to 'Ryujinx.Graphics.OpenGL')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/Pipeline.cs | 5 | ||||
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/Renderer.cs | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Pipeline.cs b/Ryujinx.Graphics.OpenGL/Pipeline.cs index 669cfe3e..c9d8186f 100644 --- a/Ryujinx.Graphics.OpenGL/Pipeline.cs +++ b/Ryujinx.Graphics.OpenGL/Pipeline.cs @@ -37,6 +37,11 @@ namespace Ryujinx.Graphics.OpenGL _clipDepthMode = ClipDepthMode.NegativeOneToOne; } + public void Barrier() + { + GL.MemoryBarrier(MemoryBarrierFlags.AllBarrierBits); + } + public void ClearRenderTargetColor(int index, uint componentMask, ColorF color) { GL.ColorMask( diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs index 29a0ea29..ccb53397 100644 --- a/Ryujinx.Graphics.OpenGL/Renderer.cs +++ b/Ryujinx.Graphics.OpenGL/Renderer.cs @@ -55,11 +55,6 @@ namespace Ryujinx.Graphics.OpenGL return new TextureStorage(this, info).CreateDefaultView(); } - public void FlushPipelines() - { - GL.Finish(); - } - public Capabilities GetCapabilities() { return new Capabilities( |
