mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-19 21:52:22 +00:00
Set OpenGL PixelPackBuffer to 0 when done (#4921)
This commit is contained in:
parent
c2709b3bdd
commit
f679f25e08
|
@ -306,6 +306,8 @@ namespace Ryujinx.Graphics.OpenGL.Image
|
||||||
int offset = WriteToPbo2D(range.Offset, layer, level);
|
int offset = WriteToPbo2D(range.Offset, layer, level);
|
||||||
|
|
||||||
Debug.Assert(offset == 0);
|
Debug.Assert(offset == 0);
|
||||||
|
|
||||||
|
GL.BindBuffer(BufferTarget.PixelPackBuffer, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteToPbo(int offset, bool forceBgra)
|
public void WriteToPbo(int offset, bool forceBgra)
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
oldView.Dispose();
|
oldView.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, drawFramebuffer);
|
GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, drawFramebuffer);
|
||||||
GL.BindFramebuffer(FramebufferTarget.ReadFramebuffer, readFramebuffer);
|
GL.BindFramebuffer(FramebufferTarget.ReadFramebuffer, readFramebuffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue