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

Commit f051ade9 authored by Pablo Ceballos's avatar Pablo Ceballos
Browse files

Fix eglSurfaceAttrib return value

Bug 24940410

Change-Id: Ibd6be5861fe48c5d2230d48a7b65ae0b21a01b9b
parent 5229d8f5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1196,8 +1196,10 @@ EGLBoolean eglSurfaceAttrib(
    egl_surface_t const * const s = get_surface(surface);

    if (attribute == EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID) {
        return (native_window_set_auto_refresh(s->win.get(),
                value ? true : false)) ? EGL_TRUE : EGL_FALSE;
        int err = native_window_set_auto_refresh(s->win.get(),
            value ? true : false);
        return (err == NO_ERROR) ? EGL_TRUE :
            setError(EGL_BAD_SURFACE, EGL_FALSE);
    }

    if (s->cnx->egl.eglSurfaceAttrib) {