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

Commit f2b1a15d authored by Pablo Ceballos's avatar Pablo Ceballos Committed by Android (Google) Code Review
Browse files

Merge "Fix eglSurfaceAttrib return value" into nyc-dev

parents 8daa5e77 f051ade9
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) {