Using isGL2 instead of isGLES2 to do glPolygonMode and glAlphaFunc