+ if (eglMajor == 1 && eglMinor < 3) {
+ fprintf(stderr, "Need at least EGL 1.3 to function properly\n");
+ exit(1);
+ }
+#ifdef USE_GLES
+ if (eglBindAPI(EGL_OPENGL_ES_API) == EGL_FALSE)
+#else
+ if (eglBindAPI(EGL_OPENGL_API) == EGL_FALSE)
+#endif
+ exitEglError("Failed to bind API");