Commit 757d2fb4 authored by Eric Engestrom's avatar Eric Engestrom Committed by Eric Engestrom

egl: move eglGetSyncAttrib() fallback to eglapi.c

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
parent 26d5ca44
......@@ -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);
}
......
......@@ -42,5 +42,4 @@
void
_eglInitDriverFallbacks(_EGLDriver *drv)
{
drv->API.GetSyncAttrib = _eglGetSyncAttrib;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment