message: On android only call eglTerminate after eglInitialize. Closes
diff: @@ -133,15 +133,16 @@ void DisplayGenericSplash()
  eglBindAPI(EGL_OPENGL_ES_API);
  EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
  - eglTerminate(eglDisplay);
  ANativeWindow *previewWindow = android_state->window;
  if(eglDisplay && previewWindow)
  {
  int major = 0, minor = 0;
  - eglInitialize(eglDisplay, &major, &minor);
  + EGLBoolean initialised = eglInitialize(eglDisplay, &major, &minor);
  + if(initialised && major >= 1)
  + {
  const EGLint configAttribs[] = {EGL_RED_SIZE,
  8,
  EGL_GREEN_SIZE,
  @@ -290,7 +291,6 @@ void main()
  eglMakeCurrent(eglDisplay, 0L, 0L, NULL);
  eglDestroyContext(eglDisplay, ctx);
  eglDestroySurface(eglDisplay, surface);
  - eglTerminate(eglDisplay);
  }
  else
  {
  @@ -301,9 +301,14 @@ void main()
  {
  ANDROID_LOG("failed choosing config");
  }
  - }
  - dlclose(libEGL);
  + eglTerminate(eglDisplay);
  + }
  + else
  + {
  + ANDROID_LOG("failed to initialise EGL");
  + }
  + }
  m_DrawLock.unlock();
  ANDROID_LOG("Done splashing");
  