Browse Source

Merge pull request #612 from bunnei/fix-cull

gl_rasterizer: Only set cull mode and front face if enabled.
nce_cpp
bunnei 8 years ago
committed by GitHub
parent
commit
6bc04e4fed
  1. 7
      src/video_core/renderer_opengl/gl_rasterizer.cpp

7
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() {

Loading…
Cancel
Save