draw: add small ybias factor for drawing wide points
authorBrian Paul <brianp@vmware.com>
Fri, 23 Jul 2010 16:32:25 +0000 (10:32 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Jul 2010 16:32:58 +0000 (10:32 -0600)
Fixes minor rasterization error detected by some tests.

src/gallium/auxiliary/draw/draw_pipe_wide_point.c

index 3e6e538..ee2945c 100644 (file)
@@ -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. */