From a9cacd03f62d15fa8c9320227e19cf853d3965d5 Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 2 Jul 2018 22:22:25 -0400 Subject: gl_rasterizer: Only set cull mode and front face if enabled. --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/video_core/renderer_opengl') diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index ca3814cfc..0552860ab 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -718,8 +718,11 @@ void RasterizerOpenGL::SyncCullMode() { const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs; state.cull.enabled = regs.cull.enabled != 0; - state.cull.front_face = MaxwellToGL::FrontFace(regs.cull.front_face); - state.cull.mode = MaxwellToGL::CullFace(regs.cull.cull_face); + + if (state.cull.enabled) { + state.cull.front_face = MaxwellToGL::FrontFace(regs.cull.front_face); + state.cull.mode = MaxwellToGL::CullFace(regs.cull.cull_face); + } } void RasterizerOpenGL::SyncDepthScale() { -- cgit v1.2.3