fixed ofMaterial for opengl ES1

glGetMaterialfv on ES1 must only use GL_FRONT_AND_BACK,
so i've added a TARGET_OPENGLES guard that handles ES1.