From: Eric Engestrom Date: Sat, 1 Aug 2020 22:39:51 +0000 (+0200) Subject: egl: inline eglSwapInterval() fallback X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d3fb7a7a7d47be640f7603de33cf5a685ee3aac;p=mesa.git egl: inline eglSwapInterval() fallback It's literally just a `return EGL_TRUE`, there's no need to have a function for that. Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov Part-of: --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 0a40770583a..e6ee31ceb18 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1291,7 +1291,7 @@ eglSwapInterval(EGLDisplay dpy, EGLint interval) if (disp->Driver->SwapInterval) ret = disp->Driver->SwapInterval(disp, surf, interval); else - ret = _eglSwapInterval(disp, surf, interval); + ret = EGL_TRUE; } else { ret = EGL_TRUE; diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index 3a62ab3b321..16a718aa09e 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -781,13 +781,6 @@ _eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) return EGL_TRUE; } - -EGLBoolean -_eglSwapInterval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval) -{ - return EGL_TRUE; -} - EGLBoolean _eglSurfaceHasMutableRenderBuffer(_EGLSurface *surf) { diff --git a/src/egl/main/eglsurface.h b/src/egl/main/eglsurface.h index 2e8eea7593f..a98bc8eb18c 100644 --- a/src/egl/main/eglsurface.h +++ b/src/egl/main/eglsurface.h @@ -196,9 +196,6 @@ extern EGLBoolean _eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); -extern EGLBoolean -_eglSwapInterval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval); - extern EGLBoolean _eglSurfaceHasMutableRenderBuffer(_EGLSurface *surf);