Mesa (master): draw: add small ybias factor for drawing wide points
Brian Paul
brianp at kemper.freedesktop.org
Fri Jul 23 16:33:15 UTC 2010
Module: Mesa
Branch: master
Commit: 41e7347a173693e9cf9ec41151a38e89627ed54f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=41e7347a173693e9cf9ec41151a38e89627ed54f
Author: Brian Paul <brianp at vmware.com>
Date: Fri Jul 23 10:32:25 2010 -0600
draw: add small ybias factor for drawing wide points
Fixes minor rasterization error detected by some tests.
---
src/gallium/auxiliary/draw/draw_pipe_wide_point.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
index 3e6e538..ee2945c 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
@@ -226,6 +226,7 @@ static void widepoint_first_point( struct draw_stage *stage,
if (rast->gl_rasterization_rules) {
wide->xbias = 0.125;
+ wide->ybias = -0.125;
}
/* Disable triangle culling, stippling, unfilled mode etc. */
More information about the mesa-commit
mailing list