summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-30 00:01:15 +0100
committerEric Engestrom <[email protected]>2019-07-01 18:51:49 +0100
commit04e0ac59b14fa0ecb874c10681acf316f633253d (patch)
tree450f69c6fa48c2a106a6633bee549a7e8e61a493
parentfbf7c38da35afe7f1de05c3896695a7a302ff925 (diff)
swrast: simplify function pointer calls
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Sagar Ghuge <[email protected]>
-rw-r--r--src/mesa/swrast/s_aaline.c4
-rw-r--r--src/mesa/swrast/s_blit.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_aaline.c b/src/mesa/swrast/s_aaline.c
index de5b42b9f6b..cdd860a41bc 100644
--- a/src/mesa/swrast/s_aaline.c
+++ b/src/mesa/swrast/s_aaline.c
@@ -406,7 +406,7 @@ segment(struct gl_context *ctx,
GLint iy;
/* scan across the line, bottom-to-top */
for (iy = iyBot; iy < iyTop; iy++) {
- (*plot)(ctx, line, ix, iy);
+ plot(ctx, line, ix, iy);
}
yBot += dydx;
yTop += dydx;
@@ -452,7 +452,7 @@ segment(struct gl_context *ctx,
GLint ix;
/* scan across the line, left-to-right */
for (ix = ixLeft; ix < ixRight; ix++) {
- (*plot)(ctx, line, ix, iy);
+ plot(ctx, line, ix, iy);
}
xLeft += dxdy;
xRight += dxdy;
diff --git a/src/mesa/swrast/s_blit.c b/src/mesa/swrast/s_blit.c
index 107e41307ee..557f107b536 100644
--- a/src/mesa/swrast/s_blit.c
+++ b/src/mesa/swrast/s_blit.c
@@ -334,7 +334,7 @@ blit_nearest(struct gl_context *ctx,
break;
}
- (*resampleRow)(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX);
+ resampleRow(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX);
prevY = srcRow;
}