From 4586e6c8cb5b391536a370faa0c419c3fd541693 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 11 Feb 2011 11:14:27 +0000 Subject: draw: Don't use the pipeline when drawing lines with fractional widths. Spotted by Jakob Bornecrantz. --- src/gallium/auxiliary/draw/draw_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/draw/draw_context.c') diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 11eba8aa4a..95d9671987 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -410,7 +410,7 @@ void draw_wide_line_threshold(struct draw_context *draw, float threshold) { draw_do_flush( draw, DRAW_FLUSH_STATE_CHANGE ); - draw->pipeline.wide_line_threshold = threshold; + draw->pipeline.wide_line_threshold = roundf(threshold); } -- cgit v1.2.3