summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 9248125de8..575265b0f5 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -237,7 +237,7 @@ static void setup_tri_coefficients( struct setup_context *setup,
static inline int subpixel_snap( float a )
{
- return util_iround(FIXED_ONE * a);
+ return util_iround(FIXED_ONE * a - (FIXED_ONE / 2));
}