[Mesa-dev] [PATCH 2/8] glx: Unify the style of function pointer calls in structs

Boyan Ding boyan.j.ding at gmail.com
Tue Nov 24 21:27:03 PST 2015


Signed-off-by: Boyan Ding <boyan.j.ding at gmail.com>
---
 src/glx/dri3_glx.c   | 2 +-
 src/glx/dri_common.c | 4 ++--
 src/glx/glxcmds.c    | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index ee24312..8a4d893 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -595,7 +595,7 @@ dri3_bind_tex_image(Display * dpy,
    if (pdraw != NULL) {
       psc = (struct dri3_screen *) base->psc;
 
-      (*psc->f->invalidate)(pdraw->loader_drawable.dri_drawable);
+      psc->f->invalidate(pdraw->loader_drawable.dri_drawable);
 
       XSync(dpy, false);
 
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 8a56385..f5c6be7 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -439,7 +439,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);
 	 }
       }
@@ -450,7 +450,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);
 	 }
       }
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 93e8db5..4d6a428 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -839,7 +839,7 @@ glXSwapBuffers(Display * dpy, GLXDrawable drawable)
       if (pdraw != NULL) {
          Bool flush = gc && drawable == gc->currentDrawable;
 
-         (*pdraw->psc->driScreen->swapBuffers)(pdraw, 0, 0, 0, flush);
+         pdraw->psc->driScreen->swapBuffers(pdraw, 0, 0, 0, flush);
          return;
       }
    }
@@ -2211,8 +2211,8 @@ __glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
 
 #ifdef GLX_DIRECT_RENDERING
    if (psc->driScreen && psc->driScreen->swapBuffers)
-      return (*psc->driScreen->swapBuffers)(pdraw, target_msc, divisor,
-					    remainder, False);
+      return psc->driScreen->swapBuffers(pdraw, target_msc, divisor,
+                                         remainder, False);
 #endif
 
    return -1;
-- 
2.6.2



More information about the mesa-dev mailing list