From 372c6c42af1dc7600eadb2712739986b2ba35325 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 3 Aug 2020 17:19:30 +0200 Subject: [PATCH] egl: replace _EGLDriver with _EGLDisplay->Driver in _eglGetSyncAttrib() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- src/egl/main/eglapi.c | 2 +- src/egl/main/eglsync.c | 4 ++-- src/egl/main/eglsync.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index c356d7a0bc7..011c191f2b8 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -2093,7 +2093,7 @@ _eglGetSyncAttribCommon(_EGLDisplay *disp, _EGLSync *s, EGLint attribute, EGLAtt disp->Extensions.KHR_fence_sync || disp->Extensions.ANDROID_native_fence_sync); - ret = _eglGetSyncAttrib(drv, disp, s, attribute, value); + ret = _eglGetSyncAttrib(disp, s, attribute, value); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/eglsync.c b/src/egl/main/eglsync.c index 4673047571d..ccad83bb241 100644 --- a/src/egl/main/eglsync.c +++ b/src/egl/main/eglsync.c @@ -120,7 +120,7 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type, EGLBoolean -_eglGetSyncAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync, +_eglGetSyncAttrib(_EGLDisplay *disp, _EGLSync *sync, EGLint attribute, EGLAttrib *value) { switch (attribute) { @@ -134,7 +134,7 @@ _eglGetSyncAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync, sync->Type == EGL_SYNC_CL_EVENT_KHR || sync->Type == EGL_SYNC_REUSABLE_KHR || sync->Type == EGL_SYNC_NATIVE_FENCE_ANDROID)) - drv->ClientWaitSyncKHR(disp, sync, 0, 0); + disp->Driver->ClientWaitSyncKHR(disp, sync, 0, 0); *value = sync->SyncStatus; break; diff --git a/src/egl/main/eglsync.h b/src/egl/main/eglsync.h index 745d5417f2d..4fdf15f231e 100644 --- a/src/egl/main/eglsync.h +++ b/src/egl/main/eglsync.h @@ -58,7 +58,7 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type, extern EGLBoolean -_eglGetSyncAttrib(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync, +_eglGetSyncAttrib(_EGLDisplay *disp, _EGLSync *sync, EGLint attribute, EGLAttrib *value); -- 2.30.2