summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-07-15 01:42:02 -0700
committerVinson Lee <vlee@vmware.com>2010-07-15 01:42:02 -0700
commit4f6aa567c0719495f2c4410212a89038fff1d7c5 (patch)
tree2801d383e7493da198c75a73516b68d9b4029838
parent3471ac95691ee976607122aace9bbebe7db96f17 (diff)
glu/sgi: Remove dead initialization in extract565.
-rw-r--r--src/glu/sgi/libutil/mipmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c
index 8e63eaaad7..52515dfab7 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/libutil/mipmap.c
@@ -5552,7 +5552,7 @@ static void shove233rev(const GLfloat shoveComponents[],
static void extract565(int isSwap,
const void *packedPixel, GLfloat extractComponents[])
{
- GLushort ushort= *(const GLushort *)packedPixel;
+ GLushort ushort;
if (isSwap) {
ushort= __GLU_SWAP_2_BYTES(packedPixel);