mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
gallium: explictly cast double to float in vertex fetch
This commit is contained in:
parent
4141ebdf59
commit
a46181044f
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue