From: Brian Date: Thu, 27 Sep 2007 16:23:32 +0000 (-0600) Subject: tweak point rast to fix conform failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f9d29cd4e876cd202a7d3e81f6d91fc7f9625a2;p=mesa.git tweak point rast to fix conform failure --- diff --git a/src/mesa/swrast/s_points.c b/src/mesa/swrast/s_points.c index 21316372e80..d54adc8fd18 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; }