Fixed webGL nested masking issue