summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-11-25 16:21:51 +0000
committerBrian Paul <[email protected]>2003-11-25 16:21:51 +0000
commit2c9f50dd4acc65ddfeb8e3fde98137711167e579 (patch)
tree2301c8a7bab79709f98e0507f97eab0f15817440 /src/mesa/main/image.c
parent3bc7f3f864e76e20c644910620f22b23e03547dc (diff)
casts for g++
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 955f14f6b18..648ad8fe34b 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -3809,7 +3809,7 @@ _mesa_pack_stencil_span( const GLcontext *ctx, GLuint n,
GLhalfNV *dst = (GLhalfNV *) dest;
GLuint i;
for (i=0;i<n;i++) {
- dst[i] = _mesa_half_to_float(source[i]);
+ dst[i] = _mesa_float_to_half( (float) source[i] );
}
if (dstPacking->SwapBytes) {
_mesa_swap2( (GLushort *) dst, n );