From: José Fonseca Date: Thu, 24 Jan 2008 10:40:14 +0000 (+0900) Subject: gallium: Fix MSVC float/double conversion warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3e4e9260d7527bb0369650b861cba43834f7106;p=mesa.git gallium: Fix MSVC float/double conversion warning. --- diff --git a/src/mesa/pipe/draw/draw_wide_prims.c b/src/mesa/pipe/draw/draw_wide_prims.c index 26f5d10dc03..9759e7e2e82 100644 --- a/src/mesa/pipe/draw/draw_wide_prims.c +++ b/src/mesa/pipe/draw/draw_wide_prims.c @@ -217,7 +217,7 @@ static void wide_point( struct draw_stage *stage, /* point size is either per-vertex or fixed size */ if (wide->psize_slot >= 0) { - half_size = 0.5 * header->v[0]->data[wide->psize_slot][0]; + half_size = 0.5f * header->v[0]->data[wide->psize_slot][0]; } else { half_size = wide->half_point_size;