emulator/opengl: Fix eglWaitGL implementation.

The eglWaitEGL implementation didn't restore the previous
bound API after calling eglWaitClient. This probably isn't
a big concern for emugl correctness, but fixing this removes
a compiler warning.

See http://www.khronos.org/registry/egl/sdk/docs/man/xhtml/eglWaitGL.html

Change-Id: I143ffeeefa01aff502d27d4e1d6f892f0d1efe5b
diff --git a/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp b/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp
index e31dea5..d88b473 100644
--- a/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp
+++ b/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp
@@ -858,7 +858,9 @@
 EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL(void) {
     EGLenum api = eglQueryAPI();
     eglBindAPI(EGL_OPENGL_ES_API);
-    return eglWaitClient();
+    EGLBoolean ret = eglWaitClient();
+    eglBindAPI(api);
+    return ret;
 }
 
 EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine) {