I urgently need to make my app work again. Dunno what I have done, but that function crashes if called second time. So, the first time it works fine and
AppLog("PRE eglMakeCurrent() - m_EGLDisplay = %d, m_EGLWindow = %d, m_EGLContext = %d", m_EGLDisplay, m_EGLWindow, m_EGLContext);
if (!eglMakeCurrent(m_EGLDisplay, m_EGLWindow, m_EGLWindow, m_EGLContext))
shows values of 1, 4, 3 respectively.
For the second call, (more exactly third call, as the real second all is a call to
eglMakeCurrent(m_EGLDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
) the parameters are also 1, 4, 3, and I can confirm this has always been the three values and only during the last 24 hours it started crashing.
What I have done was modify the PVRShellInit class a bit so that when gShellDone is set to true, the program Uninits / Reinits everything related to GL rather than terminating.