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

Commit 8bd12ea8 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Decode common GL error codes when logging frame error status" into jb-dev

parents 87b16c80 a44a63ac
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -190,8 +190,17 @@ void OpenGLRenderer::finish() {
    while ((status = glGetError()) != GL_NO_ERROR) {
    while ((status = glGetError()) != GL_NO_ERROR) {
        ALOGD("GL error from OpenGLRenderer: 0x%x", status);
        ALOGD("GL error from OpenGLRenderer: 0x%x", status);
        switch (status) {
        switch (status) {
            case GL_INVALID_ENUM:
                ALOGE("  GL_INVALID_ENUM");
                break;
            case GL_INVALID_VALUE:
                ALOGE("  GL_INVALID_VALUE");
                break;
            case GL_INVALID_OPERATION:
                ALOGE("  GL_INVALID_OPERATION");
                break;
            case GL_OUT_OF_MEMORY:
            case GL_OUT_OF_MEMORY:
                ALOGE("  OpenGLRenderer is out of memory!");
                ALOGE("  Out of memory!");
                break;
                break;
        }
        }
    }
    }