summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-03-24 11:32:33 -0600
committerBrian Paul <[email protected]>2011-03-24 11:32:38 -0600
commit4c75d5ae63c356ac9b6d23009ccc9af6205dbb4a (patch)
tree00fd5a390835cc2e573f2972ddfb186b5760c1f5 /src/gallium
parentc22a7f9045ff7a4a9505225a133b25e262958e1c (diff)
svga: adjust triangle rasterization offset
Fixes minor sub-pixel positioning error in some apps.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_state_framebuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_state_framebuffer.c b/src/gallium/drivers/svga/svga_state_framebuffer.c
index cdadb20c178..8ad6ab4c29c 100644
--- a/src/gallium/drivers/svga/svga_state_framebuffer.c
+++ b/src/gallium/drivers/svga/svga_state_framebuffer.c
@@ -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;
}