diff options
Diffstat (limited to 'Ryujinx/Ui')
-rw-r--r-- | Ryujinx/Ui/GLRenderer.cs | 24 | ||||
-rw-r--r-- | Ryujinx/Ui/RendererWidgetBase.cs | 4 | ||||
-rw-r--r-- | Ryujinx/Ui/VKRenderer.cs | 2 |
3 files changed, 5 insertions, 25 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index b839e9cd..06d414ed 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -97,31 +97,11 @@ namespace Ryujinx.Ui GL.ClearColor(0, 0, 0, 1.0f); GL.Clear(ClearBufferMask.ColorBufferBit); - SwapBuffers(0); + SwapBuffers(); } - public override void SwapBuffers(object image) + public override void SwapBuffers() { - if((int)image != 0) - { - // The game's framebruffer is already bound, so blit it to the window's backbuffer - GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, 0); - - GL.Clear(ClearBufferMask.ColorBufferBit); - GL.ClearColor(0, 0, 0, 1); - - GL.BlitFramebuffer(0, - 0, - WindowWidth, - WindowHeight, - 0, - 0, - WindowWidth, - WindowHeight, - ClearBufferMask.ColorBufferBit, - BlitFramebufferFilter.Linear); - } - _nativeWindow.SwapBuffers(); } diff --git a/Ryujinx/Ui/RendererWidgetBase.cs b/Ryujinx/Ui/RendererWidgetBase.cs index 3cdc424e..6a728a26 100644 --- a/Ryujinx/Ui/RendererWidgetBase.cs +++ b/Ryujinx/Ui/RendererWidgetBase.cs @@ -119,7 +119,7 @@ namespace Ryujinx.Ui public abstract void InitializeRenderer(); - public abstract void SwapBuffers(object image); + public abstract void SwapBuffers(); protected abstract string GetGpuBackendName(); @@ -426,7 +426,7 @@ namespace Ryujinx.Ui while (Device.ConsumeFrameAvailable()) { - Device.PresentFrame((texture) => { SwapBuffers(texture);}); + Device.PresentFrame(SwapBuffers); } if (_ticks >= _ticksPerFrame) diff --git a/Ryujinx/Ui/VKRenderer.cs b/Ryujinx/Ui/VKRenderer.cs index f65b330b..49578d2a 100644 --- a/Ryujinx/Ui/VKRenderer.cs +++ b/Ryujinx/Ui/VKRenderer.cs @@ -63,7 +63,7 @@ namespace Ryujinx.Ui public override void InitializeRenderer() { } - public override void SwapBuffers(object image) { } + public override void SwapBuffers() { } protected override string GetGpuBackendName() { |