Fix stencil clear: reset stencil mask before glClearStencil

This commit is contained in:
rdb 2015-01-13 03:18:05 +01:00
parent 0b2a3f0c95
commit 17aafeba15

View File

@ -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;
}