diff options
author | Brian Paul <[email protected]> | 2003-11-25 16:21:51 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-11-25 16:21:51 +0000 |
commit | 2c9f50dd4acc65ddfeb8e3fde98137711167e579 (patch) | |
tree | 2301c8a7bab79709f98e0507f97eab0f15817440 /src/mesa/main/image.c | |
parent | 3bc7f3f864e76e20c644910620f22b23e03547dc (diff) |
casts for g++
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 2 |
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 ); |