Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73d2a394 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 0d45d711: am 500407a2: log an error when eglCreateContext() fails in an inconsistant way

* commit '0d45d711':
  log an error when eglCreateContext() fails in an inconsistant way
parents 68872cac 0d45d711
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -416,6 +416,12 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
                GLTrace_eglCreateContext(version, c);
#endif
            return c;
        } else {
            EGLint error = eglGetError();
            ALOGE_IF(error == EGL_SUCCESS,
                    "eglCreateContext(%p, %p, %p, %p) returned EGL_NO_CONTEXT "
                    "but no EGL error!",
                    dpy, config, share_list, attrib_list);
        }
    }
    return EGL_NO_CONTEXT;