mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-11 01:33:27 +01:00
gl_rasterizer: Only set cull mode and front face if enabled.
This commit is contained in:
1 parent
0b05c9abc8
commit
e702550809
1 file changed
+5
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user