egl: drop unused _EGLDriver from QueryBufferAge()
[mesa.git] / src / egl / main / eglsurface.c
index e38f377dc8d5797cb828dfd3d20980ad46bd1319..62f2aa869d2f191bc88e08e4a680ea710449c3b1 100644 (file)
@@ -534,8 +534,7 @@ _eglQuerySurface(_EGLDisplay *disp, _EGLSurface *surface,
          return _eglError(EGL_BAD_ATTRIBUTE, "eglQuerySurface");
 
       _EGLContext *ctx = _eglGetCurrentContext();
          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;
       /* error happened */
       if (result < 0)
          return EGL_FALSE;