replace color table FloatTable boolean with Type enum
[mesa.git] / src / mesa / main / image.c
index 955f14f6b1812770a49e29b7d498d6e7534a3916..648ad8fe34bc4d4145f22b1244dc7aa64a7007a9 100644 (file)
@@ -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 );