From 4c75d5ae63c356ac9b6d23009ccc9af6205dbb4a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Mar 2011 11:32:33 -0600 Subject: svga: adjust triangle rasterization offset Fixes minor sub-pixel positioning error in some apps. --- src/gallium/drivers/svga/svga_state_framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3