diff options
author | Eric Engestrom <[email protected]> | 2019-06-22 22:33:00 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-06-25 06:36:54 +0000 |
commit | 757d2fb48dec7dc58400858741a3c66593cc905b (patch) | |
tree | e75b5dfe095f3613f47c6a8a356f2de29b678243 /src/egl/main/eglapi.c | |
parent | 26d5ca44ba13b940afc3ddc0190f9936d500a1fc (diff) |
egl: move eglGetSyncAttrib() fallback to eglapi.c
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 6 |
1 files changed, 5 insertions, 1 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); } |