lib/glesv2: update API style of glGetError