summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_pointtemp.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-01-30 16:38:20 +0000
committerBrian Paul <[email protected]>2001-01-30 16:38:20 +0000
commite56cc3970f19229fd93e246c83aab35d2b7e3116 (patch)
tree548c2143aa55f5ae000a7d9bc214ef52e3cd0512 /src/mesa/swrast/s_pointtemp.h
parentf2515fa83eea42d0c5abe168b873ddd5026d5f83 (diff)
fixed half pixel offset bug in aa point code
Diffstat (limited to 'src/mesa/swrast/s_pointtemp.h')
-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 26b7da78ad3..da7ad0352e6 100644
--- a/src/mesa/swrast/s_pointtemp.h
+++ b/src/mesa/swrast/s_pointtemp.h
@@ -1,10 +1,10 @@
-/* $Id: s_pointtemp.h,v 1.2 2001/01/04 15:31:38 brianp Exp $ */
+/* $Id: s_pointtemp.h,v 1.3 2001/01/30 16:38:20 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 3.5
*
- * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2001 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"),
@@ -219,8 +219,8 @@ NAME ( GLcontext *ctx, const SWvertex *vert )
for (x = xmin; x <= xmax; x++) {
#if FLAGS & SMOOTH
/* compute coverage */
- const GLfloat dx = x - vert->win[0];
- const GLfloat dy = y - vert->win[1];
+ const GLfloat dx = x - vert->win[0] + 0.5F;
+ const GLfloat dy = y - vert->win[1] + 0.5F;
const GLfloat dist2 = dx * dx + dy * dy;
if (dist2 < rmax2) {
#if FLAGS & RGBA