Skip to content

Commit a44a63a

Browse files
author
Romain Guy
committed
Decode common GL error codes when logging frame error status
Change-Id: I38b333eea53aef20340ce48dfcb0dd30a223f7a8
1 parent 8f8d9fb commit a44a63a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

libs/hwui/OpenGLRenderer.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,17 @@ void OpenGLRenderer::finish() {
190190
while ((status = glGetError()) != GL_NO_ERROR) {
191191
ALOGD("GL error from OpenGLRenderer: 0x%x", status);
192192
switch (status) {
193+
case GL_INVALID_ENUM:
194+
ALOGE(" GL_INVALID_ENUM");
195+
break;
196+
case GL_INVALID_VALUE:
197+
ALOGE(" GL_INVALID_VALUE");
198+
break;
199+
case GL_INVALID_OPERATION:
200+
ALOGE(" GL_INVALID_OPERATION");
201+
break;
193202
case GL_OUT_OF_MEMORY:
194-
ALOGE(" OpenGLRenderer is out of memory!");
203+
ALOGE(" Out of memory!");
195204
break;
196205
}
197206
}

0 commit comments

Comments
 (0)