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 3e6e5389950779a0b543faf377864ea6c2dc278e..ee2945c7c97363d8e90c26651c7247565d9ad283 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. */