mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Fix stencil clear: reset stencil mask before glClearStencil
This commit is contained in:
parent
0b2a3f0c95
commit
17aafeba15
@ -2412,6 +2412,7 @@ clear(DrawableRegion *clearable) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (clearable->get_clear_stencil_active()) {
|
if (clearable->get_clear_stencil_active()) {
|
||||||
|
glStencilMask(~0);
|
||||||
glClearStencil(clearable->get_clear_stencil());
|
glClearStencil(clearable->get_clear_stencil());
|
||||||
mask |= GL_STENCIL_BUFFER_BIT;
|
mask |= GL_STENCIL_BUFFER_BIT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user