Avoid can't change to use openGL es 2.0 and add some util function