diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-25 23:56:17 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:48:23 +0100 |
commit | c8f5f54a44e9873134fab74eef97e875b9e6c565 (patch) | |
tree | cc900a57edeb1f888593a48a743ea553ad5054ec /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_state: Remove front face tracking (diff) | |
download | yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.tar yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.tar.gz yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.tar.bz2 yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.tar.lz yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.tar.xz yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.tar.zst yuzu-c8f5f54a44e9873134fab74eef97e875b9e6c565.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index e9e9f9794..a080c3e81 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1020,10 +1020,8 @@ void RasterizerOpenGL::SyncClipCoef() { void RasterizerOpenGL::SyncCullMode() { const auto& regs = system.GPU().Maxwell3D().regs; - state.cull.enabled = regs.cull.enabled != 0; - if (state.cull.enabled) { - state.cull.mode = MaxwellToGL::CullFace(regs.cull.cull_face); - } + oglEnable(GL_CULL_FACE, regs.cull.enabled); + glCullFace(MaxwellToGL::CullFace(regs.cull.cull_face)); glFrontFace(MaxwellToGL::FrontFace(regs.cull.front_face)); } |