summaryrefslogtreecommitdiff
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
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 955f14f6b1..648ad8fe34 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 );