Skip to content
Snippets Groups Projects
Commit a9cacd03 authored by bunnei's avatar bunnei
Browse files

gl_rasterizer: Only set cull mode and front face if enabled.

parent 92c71350
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment