0
0
Fork 0

Keep sRGB enabled for texture blits (#1009)

This commit is contained in:
gdkchan 2020-03-22 19:34:26 -03:00 committed by GitHub
parent 49d7b1c7d8
commit 9a208c4fb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,8 +16,6 @@ namespace Ryujinx.Graphics.OpenGL
Extents2D dstRegion,
bool linearFilter)
{
GL.Disable(EnableCap.FramebufferSrgb);
int oldReadFramebufferHandle = GL.GetInteger(GetPName.ReadFramebufferBinding);
int oldDrawFramebufferHandle = GL.GetInteger(GetPName.DrawFramebufferBinding);
@ -50,8 +48,6 @@ namespace Ryujinx.Graphics.OpenGL
GL.BindFramebuffer(FramebufferTarget.ReadFramebuffer, oldReadFramebufferHandle);
GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, oldDrawFramebufferHandle);
GL.Enable(EnableCap.FramebufferSrgb);
}
private static void Attach(FramebufferTarget target, Format format, int handle)