Enable SRGB framebuffers by default (#502)
This commit is contained in:
parent
d2bb458b51
commit
b7613dd4b8
2 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
Image.Width,
|
Image.Width,
|
||||||
Image.Height, 1);
|
Image.Height, 1);
|
||||||
|
|
||||||
Image.Format = GalImageFormat.RGBA8 | GalImageFormat.Unorm;
|
Image.Format = GalImageFormat.RGBA8 | (Image.Format & GalImageFormat.TypeMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
(PixelInternalFormat InternalFmt,
|
(PixelInternalFormat InternalFmt,
|
||||||
|
|
|
@ -61,6 +61,8 @@ namespace Ryujinx.Graphics
|
||||||
//FIXME: Is this correct?
|
//FIXME: Is this correct?
|
||||||
WriteRegister(NvGpuEngine3dReg.ColorMaskN, 0x1111);
|
WriteRegister(NvGpuEngine3dReg.ColorMaskN, 0x1111);
|
||||||
|
|
||||||
|
WriteRegister(NvGpuEngine3dReg.FrameBufferSrgb, 1);
|
||||||
|
|
||||||
for (int Index = 0; Index < GalPipelineState.RenderTargetsCount; Index++)
|
for (int Index = 0; Index < GalPipelineState.RenderTargetsCount; Index++)
|
||||||
{
|
{
|
||||||
WriteRegister(NvGpuEngine3dReg.IBlendNEquationRgb + Index * 8, (int)GalBlendEquation.FuncAdd);
|
WriteRegister(NvGpuEngine3dReg.IBlendNEquationRgb + Index * 8, (int)GalBlendEquation.FuncAdd);
|
||||||
|
|
Reference in a new issue