projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c22a7f9
)
svga: adjust triangle rasterization offset
author
Brian Paul
<brianp@vmware.com>
Thu, 24 Mar 2011 17:32:33 +0000
(11:32 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_state_framebuffer.c
b/src/gallium/drivers/svga/svga_state_framebuffer.c
index cdadb20c178517816db701aa2fec9c49bb7d3944..8ad6ab4c29c2891b6cf237a44b0ae3d225565e1d 100644
(file)
--- 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.
37
5;
+ adjust_x = -0.
2
5;
adjust_y = -0.5;
break;
}