X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fegl%2Fmain%2Feglsurface.c;h=62f2aa869d2f191bc88e08e4a680ea710449c3b1;hp=e38f377dc8d5797cb828dfd3d20980ad46bd1319;hb=429e936948045d6314235581b79d29755b8bdc8c;hpb=155541bc025ad8ff122ffafa28df452c7b53d771 diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index e38f377dc8d..62f2aa869d2 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -534,8 +534,7 @@ _eglQuerySurface(_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); + EGLint result = disp->Driver->QueryBufferAge(disp, surface); /* error happened */ if (result < 0) return EGL_FALSE;