summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-01-28 10:48:22 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-01-28 10:48:22 +0000
commita46181044fd5573895180ee5f1a016c4c1e4a653 (patch)
tree0fb86aca828ebfcee7e4dc5049f11e4e9d871868 /src
parent4141ebdf59cddbb412b388c7f38f50e5e80c49d2 (diff)
gallium: explictly cast double to float in vertex fetch
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_vertex_fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_fetch.c b/src/mesa/pipe/draw/draw_vertex_fetch.c
index 0789dc8e8c..af3983b7f0 100644
--- 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]