svga: adjust triangle rasterization offset
authorBrian Paul <brianp@vmware.com>
Thu, 24 Mar 2011 17:32:33 +0000 (11:32 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 24 Mar 2011 17:32:38 +0000 (11:32 -0600)
Fixes minor sub-pixel positioning error in some apps.

src/gallium/drivers/svga/svga_state_framebuffer.c

index cdadb20c178517816db701aa2fec9c49bb7d3944..8ad6ab4c29c2891b6cf237a44b0ae3d225565e1d 100644 (file)
@@ -296,7 +296,7 @@ static int emit_viewport( struct svga_context *svga,
          break;
       case PIPE_PRIM_POINTS:
       case PIPE_PRIM_TRIANGLES:
-         adjust_x = -0.375;
+         adjust_x = -0.25;
          adjust_y = -0.5;
          break;
       }