Set OpenGL PixelPackBuffer to 0 when done (#4921)

This commit is contained in:
gdkchan 2023-05-12 21:59:46 -03:00 committed by GitHub
parent c2709b3bdd
commit f679f25e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -306,6 +306,8 @@ namespace Ryujinx.Graphics.OpenGL.Image
int offset = WriteToPbo2D(range.Offset, layer, level);
Debug.Assert(offset == 0);
GL.BindBuffer(BufferTarget.PixelPackBuffer, 0);
}
public void WriteToPbo(int offset, bool forceBgra)