diff options
author | Michal Krol <michal@tungstengraphics.com> | 2007-10-29 16:20:45 +0000 |
---|---|---|
committer | Michal Krol <michal@tungstengraphics.com> | 2007-10-29 17:05:38 +0000 |
commit | ee295fccdd0c94cb6b8af4dfb30283e39f548223 (patch) | |
tree | fe8f5064ad57c5dc12163efb5a91206b1e068141 /src/mesa/pipe/draw/draw_vertex_fetch.c | |
parent | d37eb130c090abc413a54e57e0d3800ac4cd59f4 (diff) |
Make gallium compile in win32.
Use FREE, MALLOC, CALLOC, GETENV wrappers.
Silence compiler warnings.
Add proper copyrights.
Diffstat (limited to 'src/mesa/pipe/draw/draw_vertex_fetch.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_fetch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_fetch.c b/src/mesa/pipe/draw/draw_vertex_fetch.c index de1cd06da6..5a7e6febe9 100644 --- a/src/mesa/pipe/draw/draw_vertex_fetch.c +++ b/src/mesa/pipe/draw/draw_vertex_fetch.c @@ -64,16 +64,16 @@ fetch_attrib4(const void *ptr, unsigned format, float attrib[4]) break; case PIPE_FORMAT_R32G32B32A32_SSCALED: - attrib[3] = ((int *) ptr)[3]; + attrib[3] = (float) ((int *) ptr)[3]; /* fall-through */ case PIPE_FORMAT_R32G32B32_SSCALED: - attrib[2] = ((int *) ptr)[2]; + attrib[2] = (float) ((int *) ptr)[2]; /* fall-through */ case PIPE_FORMAT_R32G32_SSCALED: - attrib[1] = ((int *) ptr)[1]; + attrib[1] = (float) ((int *) ptr)[1]; /* fall-through */ case PIPE_FORMAT_R32_SSCALED: - attrib[0] = ((int *) ptr)[0]; + attrib[0] = (float) ((int *) ptr)[0]; break; default: |