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

Commit 500407a2 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

log an error when eglCreateContext() fails in an inconsistant way

this will help debugging bug: 7216919

Change-Id: I54ac65f20c5ed55cc93a5cbc5350fadfb0fcb804
parent ff5c4aa6
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -416,6 +416,12 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
                GLTrace_eglCreateContext(version, c);
                GLTrace_eglCreateContext(version, c);
#endif
#endif
            return c;
            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;
    return EGL_NO_CONTEXT;