aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-07-06 23:40:12 -0300
committergdkchan <gab.dark.100@gmail.com>2018-07-06 23:40:12 -0300
commit0bec547b9dc11cb01c42db7f015cc47a0e649f6b (patch)
tree4c070c4445796303c01352ffc3fa43842c7f45ba
parent97ca974213ec9564ed4a9c57e998ca726dbbb64f (diff)
Disable front facing and face culling to avoid regression (#226)
* Disable tests for framebuffer blitting
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLFrameBuffer.cs29
-rw-r--r--Ryujinx.HLE/Gpu/Engines/NvGpuEngine3d.cs5
2 files changed, 31 insertions, 3 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLFrameBuffer.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLFrameBuffer.cs
index 4d91ff97..305fa37d 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLFrameBuffer.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLFrameBuffer.cs
@@ -239,7 +239,19 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{
EnsureInitialized();
- bool AlphaBlendEnable = GL.GetInteger(GetPName.Blend) != 0;
+ //bool CullFaceEnable = GL.IsEnabled(EnableCap.CullFace);
+
+ bool DepthTestEnable = GL.IsEnabled(EnableCap.DepthTest);
+
+ bool StencilTestEnable = GL.IsEnabled(EnableCap.StencilTest);
+
+ bool AlphaBlendEnable = GL.IsEnabled(EnableCap.Blend);
+
+ //GL.Disable(EnableCap.CullFace);
+
+ GL.Disable(EnableCap.DepthTest);
+
+ GL.Disable(EnableCap.StencilTest);
GL.Disable(EnableCap.Blend);
@@ -268,6 +280,21 @@ namespace Ryujinx.Graphics.Gal.OpenGL
GL.UseProgram(CurrentProgram);
+ //if (CullFaceEnable)
+ //{
+ // GL.Enable(EnableCap.CullFace);
+ //}
+
+ if (DepthTestEnable)
+ {
+ GL.Enable(EnableCap.DepthTest);
+ }
+
+ if (StencilTestEnable)
+ {
+ GL.Enable(EnableCap.StencilTest);
+ }
+
if (AlphaBlendEnable)
{
GL.Enable(EnableCap.Blend);
diff --git a/Ryujinx.HLE/Gpu/Engines/NvGpuEngine3d.cs b/Ryujinx.HLE/Gpu/Engines/NvGpuEngine3d.cs
index e0e769d4..d46f5089 100644
--- a/Ryujinx.HLE/Gpu/Engines/NvGpuEngine3d.cs
+++ b/Ryujinx.HLE/Gpu/Engines/NvGpuEngine3d.cs
@@ -79,8 +79,9 @@ namespace Ryujinx.HLE.Gpu.Engines
Gpu.Renderer.Shader.BindProgram();
- SetFrontFace();
- SetCullFace();
+ //Note: Uncomment SetFrontFace SetCullFace when flipping issues are solved
+ //SetFrontFace();
+ //SetCullFace();
SetDepth();
SetStencil();
SetAlphaBlending();