diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-02-11 11:14:27 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-02-11 11:24:55 +0000 |
commit | 4586e6c8cb5b391536a370faa0c419c3fd541693 (patch) | |
tree | a2ee659642b0c3a26576ab1b3cb39df84524bdec /src/gallium/auxiliary/draw/draw_pipe.c | |
parent | 7ac2db893a87684641f298b40e25a3b2d9991b53 (diff) |
draw: Don't use the pipeline when drawing lines with fractional widths.
Spotted by Jakob Bornecrantz.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe.c b/src/gallium/auxiliary/draw/draw_pipe.c index 6206197dae..f1b0171f52 100644 --- a/src/gallium/auxiliary/draw/draw_pipe.c +++ b/src/gallium/auxiliary/draw/draw_pipe.c @@ -64,8 +64,8 @@ boolean draw_pipeline_init( struct draw_context *draw ) return FALSE; /* these defaults are oriented toward the needs of softpipe */ - draw->pipeline.wide_point_threshold = 1000000.0; /* infinity */ - draw->pipeline.wide_line_threshold = 1.0; + draw->pipeline.wide_point_threshold = 1000000.0f; /* infinity */ + draw->pipeline.wide_line_threshold = 1.0f; draw->pipeline.wide_point_sprites = FALSE; draw->pipeline.line_stipple = TRUE; draw->pipeline.point_sprite = TRUE; |