From 881ec9ee6740b509e59cdcf0344c5b73f3f6fa8a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 12 Sep 2000 21:10:25 +0000 Subject: [PATCH] packing of GLushort packed types was broken --- src/mesa/main/image.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 77 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index bf7ec50..4b08c06 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.39 2000/08/31 15:24:07 brianp Exp $ */ +/* $Id: image.c,v 1.40 2000/09/12 21:10:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1305,7 +1305,7 @@ _mesa_pack_float_rgba_span( GLcontext *ctx, } break; case GL_UNSIGNED_SHORT_4_4_4_4: - if (dstFormat == GL_RGB) { + if (dstFormat == GL_RGBA) { GLushort *dst = (GLushort *) dstAddr; for (i=0;i