fix queries for gles2 extension APIs

for extension APIs in gles 2, it is recommended to use eglGetProcAddress().