commit | 9847f311f63301ca7d9553abcb0aec56b47cd60c | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Thu Apr 05 10:37:13 2012 -0700 |
committer | Jesse Hall <jessehall@google.com> | Thu Apr 05 18:37:43 2012 -0700 |
tree | 959d24b6c3cd32b6b108f16af78fce1645a4c8f1 | |
parent | 0872b370422eb1f9007b4717b8796543873e6390 [diff] [blame] |
Avoid waking EGL in getInitCount Change-Id: I5e0423b090c27fa4262e2a76ce4d232f8fbb8755
diff --git a/core/jni/com_google_android_gles_jni_EGLImpl.cpp b/core/jni/com_google_android_gles_jni_EGLImpl.cpp index 5483867..9c6c7de 100644 --- a/core/jni/com_google_android_gles_jni_EGLImpl.cpp +++ b/core/jni/com_google_android_gles_jni_EGLImpl.cpp
@@ -178,7 +178,7 @@ static jint jni_getInitCount(JNIEnv *_env, jobject _clazz, jobject display) { EGLDisplay dpy = getDisplay(_env, display); - egl_display_t* eglDisplay = get_display(dpy); + egl_display_t* eglDisplay = get_display_nowake(dpy); return eglDisplay ? eglDisplay->getRefsCount() : 0; }