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()) {
|
||||
glStencilMask(~0);
|
||||
glClearStencil(clearable->get_clear_stencil());
|
||||
mask |= GL_STENCIL_BUFFER_BIT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue