aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLPipeline.cs36
1 files changed, 17 insertions, 19 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLPipeline.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLPipeline.cs
index deccd890..6a928603 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLPipeline.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLPipeline.cs
@@ -159,25 +159,23 @@ namespace Ryujinx.Graphics.Gal.OpenGL
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.CullFaceEnabled != Old.CullFaceEnabled)
- //{
- // Enable(EnableCap.CullFace, New.CullFaceEnabled);
- //}
-
- //if (New.CullFaceEnabled)
- //{
- // if (New.CullFace != Old.CullFace)
- // {
- // GL.CullFace(OGLEnumConverter.GetCullFace(New.CullFace));
- // }
- //}
+ if (New.FrontFace != Old.FrontFace)
+ {
+ GL.FrontFace(OGLEnumConverter.GetFrontFace(New.FrontFace));
+ }
+
+ if (New.CullFaceEnabled != Old.CullFaceEnabled)
+ {
+ Enable(EnableCap.CullFace, New.CullFaceEnabled);
+ }
+
+ if (New.CullFaceEnabled)
+ {
+ if (New.CullFace != Old.CullFace)
+ {
+ GL.CullFace(OGLEnumConverter.GetCullFace(New.CullFace));
+ }
+ }
if (New.DepthTestEnabled != Old.DepthTestEnabled)
{