summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_unpack.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-11-15 16:47:25 -0800
committerEric Anholt <[email protected]>2011-11-22 13:58:38 -0800
commitf258c0dfa8ffbd67819bda45f2903ce8d5bb5130 (patch)
tree95547af023adde914a94ed166cc771daa80ff3c8 /src/mesa/main/format_unpack.c
parent6216a5b49566fcd3f4b7ed42838858bccd2f0552 (diff)
mesa: Fix unpack for MESA_FORMAT_INTENSITY_FLOAT16.
Fixes failures in i965 on fbo-blending-formats when the format is enabled. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/format_unpack.c')
-rw-r--r--src/mesa/main/format_unpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
index 6e2ce7a0516..ae7a04b02ca 100644
--- a/src/mesa/main/format_unpack.c
+++ b/src/mesa/main/format_unpack.c
@@ -936,7 +936,7 @@ unpack_INTENSITY_FLOAT16(const void *src, GLfloat dst[][4], GLuint n)
dst[i][RCOMP] =
dst[i][GCOMP] =
dst[i][BCOMP] =
- dst[i][ACOMP] = s[i];
+ dst[i][ACOMP] = _mesa_half_to_float(s[i]);
}
}