close #2437: replace stencil mechanism with a new approach by removing glColorMask call