modified for android-opengles2