draw: Silencium compiler warnings on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Thu, 11 Dec 2008 12:54:05 +0000 (13:54 +0100)
committerMichal Krol <michal@tungstengraphics.com>
Thu, 11 Dec 2008 12:54:05 +0000 (13:54 +0100)
src/gallium/auxiliary/draw/draw_pipe_offset.c

index 8ddc4ee..62c3153 100644 (file)
@@ -123,7 +123,7 @@ static void offset_first_tri( struct draw_stage *stage,
 {
    struct offset_stage *offset = offset_stage(stage);
 
-   offset->units = stage->draw->rasterizer->offset_units * stage->draw->mrd;
+   offset->units = (float) (stage->draw->rasterizer->offset_units * stage->draw->mrd);
    offset->scale = stage->draw->rasterizer->offset_scale;
 
    stage->tri = offset_tri;