summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_aaline.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-03-28 21:37:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-03-28 21:37:24 +0000
commitf1f288182ec07eddeefa591fce20fe69ce3744e2 (patch)
treeef8e301458ff6d02d8cf0b11c3e4606abe275662 /src/mesa/swrast/s_aaline.c
parent16a8e986cebae6560d00992b6b9f54549e1d03c6 (diff)
adjustment to coverage sample positions
Diffstat (limited to 'src/mesa/swrast/s_aaline.c')
-rw-r--r--src/mesa/swrast/s_aaline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_aaline.c b/src/mesa/swrast/s_aaline.c
index f0a8a8d06a..89df853233 100644
--- a/src/mesa/swrast/s_aaline.c
+++ b/src/mesa/swrast/s_aaline.c
@@ -1,4 +1,4 @@
-/* $Id: s_aaline.c,v 1.6 2001/03/12 00:48:41 gareth Exp $ */
+/* $Id: s_aaline.c,v 1.7 2001/03/28 21:37:24 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -234,8 +234,8 @@ make_sample_table(GLint xSamples, GLint ySamples, GLfloat samples[][2])
else {
j = i++;
}
- samples[j][0] = x * dx;
- samples[j][1] = y * dy;
+ samples[j][0] = x * dx + 0.5 * dx;
+ samples[j][1] = y * dy + 0.5 * dy;
}
}
}