aboutsummaryrefslogtreecommitdiff
path: root/system/egl/egl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'system/egl/egl.cpp')
-rw-r--r--system/egl/egl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index 17506cd9..b3d38161 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -1716,7 +1716,6 @@ EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLC
//Now make the local bind
if (context) {
- ALOGD("%s: %p: ver %d %d (tinfo %p)", __FUNCTION__, context, context->majorVersion, context->minorVersion, tInfo);
// This is a nontrivial context.
// The thread cannot be gralloc-only anymore.
hostCon->setGrallocOnly(false);
@@ -1733,6 +1732,9 @@ EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLC
context->getClientState();
if (!hostCon->gl2Encoder()->isInitialized()) {
+ ALOGD("%s: %p: ver %d %d (tinfo %p) (first time)",
+ __FUNCTION__,
+ context, context->majorVersion, context->minorVersion, tInfo);
s_display.gles2_iface()->init();
hostCon->gl2Encoder()->setInitialized();
ClientAPIExts::initClientFuncs(s_display.gles2_iface(), 1);
@@ -1836,6 +1838,9 @@ EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLC
}
else {
if (!hostCon->glEncoder()->isInitialized()) {
+ ALOGD("%s: %p: ver %d %d (tinfo %p) (first time)",
+ __FUNCTION__,
+ context, context->majorVersion, context->minorVersion, tInfo);
s_display.gles_iface()->init();
hostCon->glEncoder()->setInitialized();
ClientAPIExts::initClientFuncs(s_display.gles_iface(), 0);