Enable face culling again

This commit is contained in:
gdkchan 2019-02-13 15:47:17 -02:00
commit 8c5036e968

View file

@ -159,25 +159,23 @@ namespace Ryujinx.Graphics.Gal.OpenGL
Shader.SetExtraData(New.FlipX, New.FlipY, New.Instance); Shader.SetExtraData(New.FlipX, New.FlipY, New.Instance);
} }
//Note: Uncomment SetFrontFace and SetCullFace when flipping issues are solved if (New.FrontFace != Old.FrontFace)
{
GL.FrontFace(OGLEnumConverter.GetFrontFace(New.FrontFace));
}
//if (New.FrontFace != Old.FrontFace) if (New.CullFaceEnabled != Old.CullFaceEnabled)
//{ {
// GL.FrontFace(OGLEnumConverter.GetFrontFace(New.FrontFace)); Enable(EnableCap.CullFace, New.CullFaceEnabled);
//} }
//if (New.CullFaceEnabled != Old.CullFaceEnabled) if (New.CullFaceEnabled)
//{ {
// Enable(EnableCap.CullFace, New.CullFaceEnabled); if (New.CullFace != Old.CullFace)
//} {
GL.CullFace(OGLEnumConverter.GetCullFace(New.CullFace));
//if (New.CullFaceEnabled) }
//{ }
// if (New.CullFace != Old.CullFace)
// {
// GL.CullFace(OGLEnumConverter.GetCullFace(New.CullFace));
// }
//}
if (New.DepthTestEnabled != Old.DepthTestEnabled) if (New.DepthTestEnabled != Old.DepthTestEnabled)
{ {