+ }
+#ifdef EGL_CONTEXT_MINOR_VERSION
+ if (fgDisplay.pDisplay.egl.MinorVersion >= 5) {
+ eglQueryContext(fgDisplay.pDisplay.egl.Display, context, EGL_CONTEXT_MINOR_VERSION, &ver);
+ if (ver != fgState.MinorVersion) {
+ fgError("Wrong GLES minor version: %d\n", ver);
+ }
+ }
+#endif