Add support for StencilWriteMask to OpenGL backend