From 04e0ac59b14fa0ecb874c10681acf316f633253d Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 30 Jun 2019 00:01:15 +0100 Subject: [PATCH] swrast: simplify function pointer calls Signed-off-by: Eric Engestrom Reviewed-by: Sagar Ghuge --- src/mesa/swrast/s_aaline.c | 4 ++-- src/mesa/swrast/s_blit.c | 2 +- 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; } -- 2.30.2