mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-29 23:42:48 +00:00
gl_rasterizer: Update stencil test regardless of it being disabled
This commit is contained in:
parent
c310cef615
commit
7617e88fb2
|
@ -1053,12 +1053,8 @@ void RasterizerOpenGL::SyncStencilTestState() {
|
||||||
flags[Dirty::StencilTest] = false;
|
flags[Dirty::StencilTest] = false;
|
||||||
|
|
||||||
const auto& regs = gpu.regs;
|
const auto& regs = gpu.regs;
|
||||||
if (!regs.stencil_enable) {
|
oglEnable(GL_STENCIL_TEST, regs.stencil_enable);
|
||||||
glDisable(GL_STENCIL_TEST);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
glEnable(GL_STENCIL_TEST);
|
|
||||||
glStencilFuncSeparate(GL_FRONT, MaxwellToGL::ComparisonOp(regs.stencil_front_func_func),
|
glStencilFuncSeparate(GL_FRONT, MaxwellToGL::ComparisonOp(regs.stencil_front_func_func),
|
||||||
regs.stencil_front_func_ref, regs.stencil_front_func_mask);
|
regs.stencil_front_func_ref, regs.stencil_front_func_mask);
|
||||||
glStencilOpSeparate(GL_FRONT, MaxwellToGL::StencilOp(regs.stencil_front_op_fail),
|
glStencilOpSeparate(GL_FRONT, MaxwellToGL::StencilOp(regs.stencil_front_op_fail),
|
||||||
|
|
Loading…
Reference in a new issue