From 1d3fb7a7a7d47be640f7603de33cf5a685ee3aac Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 2 Aug 2020 00:39:51 +0200 Subject: [PATCH] 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: --- src/egl/main/eglapi.c | 2 +- src/egl/main/eglsurface.c | 7 ------- src/egl/main/eglsurface.h | 3 --- 3 files changed, 1 insertion(+), 11 deletions(-) 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); -- 2.30.2