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:
parent
6416bc1938
commit
d941f4c070
4 changed files with 14 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue