gallium: explictly cast double to float in vertex fetch

This commit is contained in:
Keith Whitwell 2008-01-28 10:48:22 +00:00
parent 4141ebdf59
commit a46181044f

View file

@ -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]