draw: tweak AA line texture minimum alpha
authorBrian Paul <brianp@vmware.com>
Wed, 9 Feb 2011 20:11:12 +0000 (13:11 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Feb 2011 19:00:51 +0000 (12:00 -0700)
AA lines drawn as textured quads look a little better with this change.
Conformance/piglit tests still pass.

src/gallium/auxiliary/draw/draw_pipe_aaline.c

index 0851b9acc0d4db457260fdcc14ba9095d1a589d0..af4cea85948d2e06788962246222264689e0b18b 100644 (file)
@@ -461,7 +461,7 @@ aaline_create_texture(struct aaline_stage *aaline)
                d = 200; /* tuneable */
             }
             else if (i == 0 || j == 0 || i == size - 1 || j == size - 1) {
-               d = 0;
+               d = 35;  /* edge texel */
             }
             else {
                d = 255;