From e7e3fd5c03fcae2c72d142bfc5ea67b7b78d49bc Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 22 Nov 2018 19:47:28 +0000 Subject: glx: drop unnecessary pointer deref for function calls Signed-off-by: Eric Engestrom Reviewed-by: Adam Jackson --- src/glx/dri_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glx/dri_common.c') diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index 2db29fd6abb..d7279d7d1fb 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -397,7 +397,7 @@ driReleaseDrawables(struct glx_context *gc) if (pdraw->drawable == pdraw->xDrawable) { pdraw->refcount --; if (pdraw->refcount == 0) { - (*pdraw->destroyDrawable)(pdraw); + pdraw->destroyDrawable(pdraw); __glxHashDelete(priv->drawHash, gc->currentDrawable); } } @@ -408,7 +408,7 @@ driReleaseDrawables(struct glx_context *gc) if (pdraw->drawable == pdraw->xDrawable) { pdraw->refcount --; if (pdraw->refcount == 0) { - (*pdraw->destroyDrawable)(pdraw); + pdraw->destroyDrawable(pdraw); __glxHashDelete(priv->drawHash, gc->currentReadable); } } -- cgit v1.2.3