This function was incorrectly using the stencil_two_side_enable register when dynamically updating the StencilOp.