diff options
author | Brian Paul <[email protected]> | 2009-11-04 17:57:20 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-11-04 17:57:20 -0700 |
commit | 898de4a9d5e47ed32c600e5907476fd9338aa7e9 (patch) | |
tree | b06ee62e20bbf0cc5dbfd55b8315c4c409eb45ec /src/mesa/main/histogram.c | |
parent | fe86f8d73268785b31bc8d5a278a233bff42034d (diff) | |
parent | 1c3f7ab74ce492d6c92f2e3a0f29957fa9a71d96 (diff) |
Merge branch 'mesa_7_6_branch'
Conflicts:
src/mesa/drivers/windows/gdi/mesa.def
Diffstat (limited to 'src/mesa/main/histogram.c')
-rw-r--r-- | src/mesa/main/histogram.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/histogram.c b/src/mesa/main/histogram.c index 87816d31329..dfbe910a064 100644 --- a/src/mesa/main/histogram.c +++ b/src/mesa/main/histogram.c @@ -189,16 +189,17 @@ pack_histogram( GLcontext *ctx, { /* temporarily store as GLuints */ GLuint temp[4*HISTOGRAM_TABLE_SIZE]; - GLhalfARB *dst = (GLhalfARB *) destination; + GLuint *dst = temp; + GLhalfARB *half = destination; GLuint i; /* get GLuint values */ PACK_MACRO(GLuint); /* convert to GLhalf */ for (i = 0; i < n * comps; i++) { - dst[i] = _mesa_float_to_half((GLfloat) temp[i]); + half[i] = _mesa_float_to_half((GLfloat) temp[i]); } if (packing->SwapBytes) { - _mesa_swap2((GLushort *) dst, n * comps); + _mesa_swap2((GLushort *) half, n * comps); } } break; |