From: Keith Whitwell Date: Mon, 28 Jan 2008 10:48:22 +0000 (+0000) Subject: gallium: explictly cast double to float in vertex fetch X-Git-Tag: 062012170305~17580^2~496^2~298^2~16^2~384^2~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85d7e7ceeecde86621e3d999c475c1e9d97091f0;p=profile%2Fivi%2Fmesa.git gallium: explictly cast double to float in vertex fetch --- diff --git a/src/mesa/pipe/draw/draw_vertex_fetch.c b/src/mesa/pipe/draw/draw_vertex_fetch.c index 0789dc8..af3983b 100644 --- a/src/mesa/pipe/draw/draw_vertex_fetch.c +++ b/src/mesa/pipe/draw/draw_vertex_fetch.c @@ -62,7 +62,7 @@ fetch_##NAME(const void *ptr, float *attrib) \ } \ } -#define CVT_64_FLOAT ((double *) ptr)[i] +#define CVT_64_FLOAT (float) ((double *) ptr)[i] #define CVT_32_FLOAT ((float *) ptr)[i] #define CVT_8_USCALED (float) ((unsigned char *) ptr)[i]