From: Eric Engestrom Date: Sun, 22 Apr 2018 14:48:15 +0000 (+0200) Subject: egl: replace _EGLDriver with _EGLDisplay->Driver in _eglQuerySurface() X-Git-Tag: upstream/21.0.0~6533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e87e68d836e5e08025ce61d5aa79a5c68a5784ef;p=platform%2Fupstream%2Fmesa.git egl: replace _EGLDriver with _EGLDisplay->Driver in _eglQuerySurface() Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index f70cbef..d75af7a 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -534,6 +534,7 @@ _eglQuerySurface(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface, return _eglError(EGL_BAD_ATTRIBUTE, "eglQuerySurface"); _EGLContext *ctx = _eglGetCurrentContext(); + const _EGLDriver *drv = disp->Driver; EGLint result = drv->QueryBufferAge(drv, disp, surface); /* error happened */ if (result < 0)