eglMakeCurrent() crash OGLES 1.1

This topic contains 1 reply, has 2 voices, and was last updated by  Aaron 7 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30266

    kellogs
    Member

    Hi,

    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

    Code:
    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

    Code:
    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.

    Thanks anyone.

    #34282

    Aaron
    Member

    If you need shell re-initialisation, try calling PVRShellSet(prefInitRepeats, 1) with an unmodified Shell.

    Aaron.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.