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

Commit 8dd89273 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix crash in presentation time implementation" into main

parents 12f83cff ab851c75
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2111,6 +2111,10 @@ EGLBoolean eglPresentationTimeANDROIDImpl(EGLDisplay dpy, EGLSurface surface,
    }

    egl_surface_t const* const s = get_surface(surface);
    if (!s->getNativeWindow()) {
        setError(EGL_BAD_SURFACE, EGL_FALSE);
        return EGL_FALSE;
    }
    native_window_set_buffers_timestamp(s->getNativeWindow(), time);

    return EGL_TRUE;