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

Commit a986c2de authored by Gary King's avatar Gary King Committed by Brint E. Kriebel
Browse files

egl: return success for eglSwapInterval

default shouldn't return an error, since this would preclude hardware
implementations which implement this function correctly

Change-Id: Iee73305520cb67d1d278a17db1ce8cf30d26a099
parent 670e1c7b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1980,7 +1980,11 @@ EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval)
    if (egl_display_t::is_valid(dpy) == EGL_FALSE)
        return setError(EGL_BAD_DISPLAY, EGL_FALSE);
    // TODO: eglSwapInterval()
    return setError(EGL_BAD_PARAMETER, EGL_FALSE);
    /* TODO: [ahatala 2009-10-09] changing this to default to succeeding,
       as this will cause eglSwapInterval to fail even if the hw implementation
       correctly supports it. */
    //return setError(EGL_BAD_PARAMETER, EGL_FALSE);
    return EGL_TRUE;
}

// ----------------------------------------------------------------------------