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

Commit e1e10b01 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "eglSwapBuffersWithDamageKHR robustness"

parents 411ce935 b524c931
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1379,6 +1379,9 @@ EGLBoolean eglSwapBuffersWithDamageKHRImpl(EGLDisplay dpy, EGLSurface draw,
    if (!_s.get())
        return setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE);

    if (n_rects < 0 || (n_rects > 0 && rects == NULL))
        return setError(EGL_BAD_PARAMETER, (EGLBoolean)EGL_FALSE);

    egl_surface_t* const s = get_surface(draw);

    if (CC_UNLIKELY(dp->traceGpuCompletion)) {