projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ab647
)
gallium: explictly cast double to float in vertex fetch
author
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 28 Jan 2008 10:48:22 +0000
(10:48 +0000)
committer
Ben Skeggs
<skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:22 +0000
(13:50 +1100)
src/mesa/pipe/draw/draw_vertex_fetch.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_vertex_fetch.c
b/src/mesa/pipe/draw/draw_vertex_fetch.c
index 0789dc8e8c7be52870a6babd7dfb048d3cd48253..af3983b7f0310b5c757262466b89c917f4a65733 100644
(file)
--- 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]