This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

eglMakeCurrent or eglGetCurrentDisplay bug?

After calling eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT), the functions eglGetCurrentDisplay() returns EGL_NO_DISPLAY.  Is this the correct behavior?

When using ANGLE eglGetCurrentDisplay returns m_display.  This seems correct.

  • This is not a bug in our driver but mandated by the EGL specification.

    See 3.7.4 Context Queries:

    If there is no current context for the current rendering API, EGL_NO_DISPLAY is returned (this is not an error).

    By calling eglMakeCurrent with EGL_NO_CONTEXT as last parameter you are leaving the current thread without a current context.