diff options
author | Roland Scheidegger <[email protected]> | 2018-03-09 05:27:25 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2018-03-10 02:11:50 +0100 |
commit | d62f0df3541ab9ee7a4999f0ecedc52f8d1ab8cc (patch) | |
tree | 10f041f03fa48824e6597ff0814220b61ee8e833 /src/gallium/auxiliary/draw/draw_pipe_stipple.c | |
parent | 24b415270ffeef873ba4772d1b3c7c185c9b1958 (diff) |
draw: fix alpha value for very short aa lines
The logic would not work correctly for line lengths smaller than 1.0,
even a degenerated line with length 0 would still produce a fragment
with anyhwere between alpha 0.0 and 0.5.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_stipple.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_stipple.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_stipple.c b/src/gallium/auxiliary/draw/draw_pipe_stipple.c index 3a44e96add0..d30572cc61c 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_stipple.c +++ b/src/gallium/auxiliary/draw/draw_pipe_stipple.c @@ -150,7 +150,6 @@ stipple_line(struct draw_stage *stage, struct prim_header *header) if (header->flags & DRAW_PIPE_RESET_STIPPLE) stipple->counter = 0; - /* XXX ToDo: instead of iterating pixel-by-pixel, use a look-up table. */ for (i = 0; i < length; i++) { |