gallium: Fix build on Windows.
[mesa.git] / src / mesa / pipe / draw / draw_wide_prims.c
index 37b60a6da198559752a5cf53f131f4c575913952..655774b155f5a0cc18dce621f044390cdff498c8 100644 (file)
@@ -175,7 +175,7 @@ static void wide_line_aa(struct draw_stage *stage,
    float *pos;
    float dx = header->v[1]->data[0][0] - header->v[0]->data[0][0];
    float dy = header->v[1]->data[0][1] - header->v[0]->data[0][1];
-   const float len = sqrt(dx * dx + dy * dy);
+   const float len = (float) sqrt(dx * dx + dy * dy);
    uint i;
 
    dx = dx * half_width / len;