public static void PopStencilDepth()
{
if (_stencilDepth > -1)
{
_stencilDepth--;
_stencilStack.Pop();
if (_stencilDepth == -1)
{
GL.Disable(EnableCap.StencilTest);
}
else
{
StencilOp stencilOp = (StencilOp)_stencilStack.Peek();
SetStencilOp(stencilOp);
}
}
}