Remember bound framebuffer to avoid glGetInteger use. (#1273)

glGetInteger seems to sync with GPU which is less than ideal, and slowing down texture copies.
This commit is contained in:
riperiperi
2020-05-24 14:44:12 +01:00
committed by GitHub
parent 6416bc1938
commit d941f4c070
4 changed files with 14 additions and 6 deletions

View File

@ -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)