From d941f4c07099bd365f6b0e8efb1cd727ae422009 Mon Sep 17 00:00:00 2001
From: riperiperi <rhy3756547@hotmail.com>
Date: Sun, 24 May 2020 14:44:12 +0100
Subject: Remember bound framebuffer to avoid glGetInteger use. (#1273)

glGetInteger seems to sync with GPU which is less than ideal, and slowing down texture copies.
---
 Ryujinx.Graphics.OpenGL/Framebuffer.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'Ryujinx.Graphics.OpenGL/Framebuffer.cs')

diff --git a/Ryujinx.Graphics.OpenGL/Framebuffer.cs b/Ryujinx.Graphics.OpenGL/Framebuffer.cs
index e66dcaca..aececbe8 100644
--- a/Ryujinx.Graphics.OpenGL/Framebuffer.cs
+++ b/Ryujinx.Graphics.OpenGL/Framebuffer.cs
@@ -20,9 +20,10 @@ namespace Ryujinx.Graphics.OpenGL
             _colors = new TextureView[8];
         }
 
-        public void Bind()
+        public int Bind()
         {
             GL.BindFramebuffer(FramebufferTarget.Framebuffer, Handle);
+            return Handle;
         }
 
         public void AttachColor(int index, TextureView color)
-- 
cgit v1.2.3-70-g09d2