diff options
author | Eric Anholt <[email protected]> | 2011-11-15 16:47:25 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-11-22 13:58:38 -0800 |
commit | f258c0dfa8ffbd67819bda45f2903ce8d5bb5130 (patch) | |
tree | 95547af023adde914a94ed166cc771daa80ff3c8 /src/mesa/main/format_unpack.c | |
parent | 6216a5b49566fcd3f4b7ed42838858bccd2f0552 (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.c | 2 |
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]); } } |