iOS GLES1 reimplemented
iOS GLES2 implemented