summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-02-20 09:38:16 -0700
committerBrian <[email protected]>2008-02-20 09:38:16 -0700
commit5737d6c5656ee50075973a3eeb8e863946701602 (patch)
tree8bb47d2da2bfb20aa341d4d3fa186b46afe32fb8 /src/mesa/swrast
parent08a7f56c6ad8046e80d117ab1af3c46134366fbd (diff)
Fix point rasterization regression caused by commit 95a2eb97673fa3139218347a8eb2c1d34f585dbe
Even-sized, non-AA points need 0.5 bias in position to hit the right pixels. Test program from bug report 11016 retested and is OK.
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_pointtemp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_pointtemp.h b/src/mesa/swrast/s_pointtemp.h
index 7dcc1fc9449..891ff2224ee 100644
--- a/src/mesa/swrast/s_pointtemp.h
+++ b/src/mesa/swrast/s_pointtemp.h
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 6.5.3
+ * Version: 7.0.3
*
- * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -218,9 +218,9 @@ NAME ( GLcontext *ctx, const SWvertex *vert )
}
else {
/* even size */
- xmin = (GLint) vert->win[0] - iRadius;
+ xmin = (GLint) (vert->win[0] + 0.5) - iRadius;
xmax = xmin + iSize - 1;
- ymin = (GLint) vert->win[1] - iRadius;
+ ymin = (GLint) (vert->win[1] + 0.5) - iRadius;
ymax = ymin + iSize - 1;
}
#endif /*SMOOTH*/