Try to set stencil ref based on different texture format