From b981babb937b4355c5c1d2415d95e725ba18e659 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 3 Aug 2020 17:03:44 +0200 Subject: [PATCH] egl: drop unused _EGLDriver & _EGLDisplay from _eglQueryContext() 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/eglcontext.c | 6 +----- src/egl/main/eglcontext.h | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) 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 -- 2.30.2