diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-03 04:22:25 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-03 04:22:25 +0200 |
commit | a9cacd03f62d15fa8c9320227e19cf853d3965d5 (patch) | |
tree | a1f88985efa519060d47cb216898a87b2efd7fe0 /src | |
parent | Merge pull request #608 from Subv/depth (diff) | |
download | yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.tar yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.tar.gz yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.tar.bz2 yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.tar.lz yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.tar.xz yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.tar.zst yuzu-a9cacd03f62d15fa8c9320227e19cf853d3965d5.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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() { |