From: Eric Engestrom Date: Mon, 3 Aug 2020 15:03:44 +0000 (+0200) Subject: egl: drop unused _EGLDriver & _EGLDisplay from _eglQueryContext() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;ds=sidebyside;h=b981babb937b4355c5c1d2415d95e725ba18e659;hp=3ef8aacb60e758d38e13d30fc5613f272bd3ddbd;p=mesa.git egl: drop unused _EGLDriver & _EGLDisplay from _eglQueryContext() Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index dd5fe1b1ea3..0926b00a7c8 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -898,7 +898,7 @@ eglQueryContext(EGLDisplay dpy, EGLContext ctx, _EGL_CHECK_CONTEXT(disp, context, EGL_FALSE, drv); - ret = _eglQueryContext(drv, disp, context, attribute, value); + ret = _eglQueryContext(context, attribute, value); RETURN_EGL_EVAL(disp, ret); } diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 63035a3312e..65dc886abbb 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -671,12 +671,8 @@ _eglQueryContextRenderBuffer(_EGLContext *ctx) EGLBoolean -_eglQueryContext(const _EGLDriver *drv, _EGLDisplay *disp, _EGLContext *c, - EGLint attribute, EGLint *value) +_eglQueryContext(_EGLContext *c, EGLint attribute, EGLint *value) { - (void) drv; - (void) disp; - if (!value) return _eglError(EGL_BAD_PARAMETER, "eglQueryContext"); diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h index e1d335e7536..06029e81251 100644 --- a/src/egl/main/eglcontext.h +++ b/src/egl/main/eglcontext.h @@ -74,7 +74,7 @@ _eglInitContext(_EGLContext *ctx, _EGLDisplay *disp, extern EGLBoolean -_eglQueryContext(const _EGLDriver *drv, _EGLDisplay *disp, _EGLContext *ctx, EGLint attribute, EGLint *value); +_eglQueryContext(_EGLContext *ctx, EGLint attribute, EGLint *value); extern EGLBoolean