Skip to content

Commit 9847f31

Browse files
committed
Avoid waking EGL in getInitCount
Change-Id: I5e0423b090c27fa4262e2a76ce4d232f8fbb8755
1 parent 0872b37 commit 9847f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/com_google_android_gles_jni_EGLImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static jboolean jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display
178178

179179
static jint jni_getInitCount(JNIEnv *_env, jobject _clazz, jobject display) {
180180
EGLDisplay dpy = getDisplay(_env, display);
181-
egl_display_t* eglDisplay = get_display(dpy);
181+
egl_display_t* eglDisplay = get_display_nowake(dpy);
182182
return eglDisplay ? eglDisplay->getRefsCount() : 0;
183183
}
184184

0 commit comments

Comments
 (0)