From: Eric Engestrom Date: Sat, 29 Jun 2019 23:01:15 +0000 (+0100) Subject: swrast: simplify function pointer calls X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04e0ac59b14fa0ecb874c10681acf316f633253d;p=mesa.git swrast: simplify function pointer calls Signed-off-by: Eric Engestrom Reviewed-by: Sagar Ghuge --- 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; }