mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-13 23:35:06 +12:00
Update renderer_gl.cpp
This commit is contained in:
parent
73321856c8
commit
c7cad054e2
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ void RendererGL::setupStencilTest(bool stencilEnable) {
|
||||||
const bool stencilWrite = regs[PICA::InternalRegs::DepthBufferWrite];
|
const bool stencilWrite = regs[PICA::InternalRegs::DepthBufferWrite];
|
||||||
const u32 stencilBufferMask = stencilWrite ? getBits<8, 8>(stencilConfig) : 0;
|
const u32 stencilBufferMask = stencilWrite ? getBits<8, 8>(stencilConfig) : 0;
|
||||||
|
|
||||||
|
// TODO: Throw stencilFunc/stencilOp to the GL state manager
|
||||||
glStencilFunc(stencilFuncs[stencilFunc], reference, stencilRefMask);
|
glStencilFunc(stencilFuncs[stencilFunc], reference, stencilRefMask);
|
||||||
gl.setStencilMask(stencilBufferMask);
|
gl.setStencilMask(stencilBufferMask);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue