diff options
author | marha <marha@users.sourceforge.net> | 2009-12-22 17:33:44 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-12-22 17:33:44 +0000 |
commit | b729d9e1cc1c60e415da24143cabcbaccb525ed7 (patch) | |
tree | 54fc81d1a046dc5ec6f4aa2a2d8a2ad015c423fd /mesalib/src/mesa/main/histogram.c | |
parent | 0695dfb71ca6fe132d15a4d0890e8a868183adf9 (diff) | |
download | vcxsrv-b729d9e1cc1c60e415da24143cabcbaccb525ed7.tar.gz vcxsrv-b729d9e1cc1c60e415da24143cabcbaccb525ed7.tar.bz2 vcxsrv-b729d9e1cc1c60e415da24143cabcbaccb525ed7.zip |
Updated to mesa_7_6_1_rc1
Diffstat (limited to 'mesalib/src/mesa/main/histogram.c')
-rw-r--r-- | mesalib/src/mesa/main/histogram.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesalib/src/mesa/main/histogram.c b/mesalib/src/mesa/main/histogram.c index ceb0d5a6a..2b3e62c7d 100644 --- a/mesalib/src/mesa/main/histogram.c +++ b/mesalib/src/mesa/main/histogram.c @@ -186,16 +186,17 @@ pack_histogram( GLcontext *ctx, { /* temporarily store as GLuints */ GLuint temp[4*HISTOGRAM_TABLE_SIZE]; - GLhalfARB *dst = (GLhalfARB *) destination; + GLuint *dst = temp; + GLhalfARB *half = (GLhalfARB *) 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; |