Support stencil buffer on iOS.