gallium: explictly cast double to float in vertex fetch

This commit is contained in:
Keith Whitwell 2008-01-28 10:48:22 +00:00 committed by Ben Skeggs
parent 01ab6472cc
commit 85d7e7ceee

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]