diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-09-27 10:23:32 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-09-27 10:39:01 -0600 |
commit | 4f9d29cd4e876cd202a7d3e81f6d91fc7f9625a2 (patch) | |
tree | 5635ef6fcee76fd7ddbfbe142332a1855141502e | |
parent | 3ee6a77e97f7d2996f8fffdbb4787a9589189b39 (diff) |
tweak point rast to fix conform failure
-rw-r--r-- | src/mesa/swrast/s_points.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_points.c b/src/mesa/swrast/s_points.c index 21316372e8..d54adc8fd1 100644 --- a/src/mesa/swrast/s_points.c +++ b/src/mesa/swrast/s_points.c @@ -172,9 +172,10 @@ sprite_point(GLcontext *ctx, const SWvertex *vert) } else { /* even size */ - xmin = (GLint) x - iRadius; + /* 0.501 factor allows conformance to pass */ + xmin = (GLint) (x + 0.501) - iRadius; xmax = xmin + iSize - 1; - ymin = (GLint) y - iRadius; + ymin = (GLint) (y + 0.501) - iRadius; ymax = ymin + iSize - 1; } @@ -418,9 +419,10 @@ large_point(GLcontext *ctx, const SWvertex *vert) } else { /* even size */ - xmin = (GLint) x - iRadius; + /* 0.501 factor allows conformance to pass */ + xmin = (GLint) (x + 0.501) - iRadius; xmax = xmin + iSize - 1; - ymin = (GLint) y - iRadius; + ymin = (GLint) (y + 0.501) - iRadius; ymax = ymin + iSize - 1; } |