Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9847f311 authored by Jesse Hall's avatar Jesse Hall
Browse files

Avoid waking EGL in getInitCount

Change-Id: I5e0423b090c27fa4262e2a76ce4d232f8fbb8755
parent 0872b370
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ static jboolean jni_eglQuerySurface(JNIEnv *_env, jobject _this, jobject display

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;
}