fix pattern in GLES2
refactor GL2/GLES2