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.
Merge pull request #2606 from julapy/ios-material-fix

fixed ofMaterial for opengl ES1