From 757d2fb48dec7dc58400858741a3c66593cc905b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 22 Jun 2019 22:33:00 +0100 Subject: [PATCH] egl: move eglGetSyncAttrib() fallback to eglapi.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Reviewed-by: Tapani Pälli --- src/egl/main/eglapi.c | 6 +++++- src/egl/main/eglfallbacks.c | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 60f59bb165a..cfc61dba80f 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -2112,7 +2112,11 @@ _eglGetSyncAttribCommon(_EGLDisplay *disp, _EGLSync *s, EGLint attribute, EGLAtt assert(disp->Extensions.KHR_reusable_sync || disp->Extensions.KHR_fence_sync || disp->Extensions.ANDROID_native_fence_sync); - ret = drv->API.GetSyncAttrib(drv, disp, s, attribute, value); + + if (drv->API.GetSyncAttrib) + ret = drv->API.GetSyncAttrib(drv, disp, s, attribute, value); + else + ret = _eglGetSyncAttrib(drv, disp, s, attribute, value); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index 891c6fc3b71..7dca5f6bdf8 100644 --- a/src/egl/main/eglfallbacks.c +++ b/src/egl/main/eglfallbacks.c @@ -42,5 +42,4 @@ void _eglInitDriverFallbacks(_EGLDriver *drv) { - drv->API.GetSyncAttrib = _eglGetSyncAttrib; } -- 2.30.2