am 0d45d711: am 500407a2: log an error when eglCreateContext() fails in an inconsistant way
* commit '0d45d711976bdca1165536b8948680680d38eb6a': log an error when eglCreateContext() fails in an inconsistant way
This commit is contained in:
commit
73d2a39400
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue