mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 11:42:48 +00:00
Merge pull request #612 from bunnei/fix-cull
gl_rasterizer: Only set cull mode and front face if enabled.
This commit is contained in:
commit
e3ca561ea0
|
@ -718,8 +718,11 @@ void RasterizerOpenGL::SyncCullMode() {
|
||||||
const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs;
|
const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs;
|
||||||
|
|
||||||
state.cull.enabled = regs.cull.enabled != 0;
|
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() {
|
void RasterizerOpenGL::SyncDepthScale() {
|
||||||
|
|
Loading…
Reference in a new issue