Mesa (master): draw: tweak AA line texture minimum alpha

Brian Paul brianp at kemper.freedesktop.org
Fri Feb 11 19:01:11 UTC 2011


Module: Mesa
Branch: master
Commit: 413511f7967260c61085a4fa61bebdcc385cf7ca
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=413511f7967260c61085a4fa61bebdcc385cf7ca

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Feb  9 13:11:12 2011 -0700

draw: tweak AA line texture minimum alpha

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pipe_aaline.c b/src/gallium/auxiliary/draw/draw_pipe_aaline.c
index 0851b9a..af4cea8 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_aaline.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_aaline.c
@@ -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;




More information about the mesa-commit mailing list