mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
gallium: explictly cast double to float in vertex fetch
This commit is contained in:
parent
01ab6472cc
commit
85d7e7ceee
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