summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-05-15 21:21:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-05-15 21:21:08 +0000
commita51f07d5a148705c1c118dece1630972753ca349 (patch)
tree5f671cf90b9efe9e74991ecc9451b0117519cd99 /src/mesa/main
parent9e48553ccc591a8d0559dac6ef9cd5a956dbd41e (diff)
_mesa_pack_index_span() was broken for non-GLubyte datatypes
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/image.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 4cdfff7e12c..86883aa2cfa 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.59 2001/04/04 23:22:38 brianp Exp $ */
+/* $Id: image.c,v 1.60 2001/05/15 21:21:08 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -3180,7 +3180,7 @@ _mesa_pack_index_span( const GLcontext *ctx, GLuint n,
GLbyte *dst = (GLbyte *) dest;
GLuint i;
for (i = 0; i < n; i++) {
- dst[i] = (GLbyte) indexes[i];
+ dst[i] = (GLbyte) source[i];
}
}
break;
@@ -3189,7 +3189,7 @@ _mesa_pack_index_span( const GLcontext *ctx, GLuint n,
GLushort *dst = (GLushort *) dest;
GLuint i;
for (i = 0; i < n; i++) {
- dst[i] = (GLushort) indexes[i];
+ dst[i] = (GLushort) source[i];
}
if (dstPacking->SwapBytes) {
_mesa_swap2( (GLushort *) dst, n );
@@ -3201,7 +3201,7 @@ _mesa_pack_index_span( const GLcontext *ctx, GLuint n,
GLshort *dst = (GLshort *) dest;
GLuint i;
for (i = 0; i < n; i++) {
- dst[i] = (GLshort) indexes[i];
+ dst[i] = (GLshort) source[i];
}
if (dstPacking->SwapBytes) {
_mesa_swap2( (GLushort *) dst, n );
@@ -3213,7 +3213,7 @@ _mesa_pack_index_span( const GLcontext *ctx, GLuint n,
GLuint *dst = (GLuint *) dest;
GLuint i;
for (i = 0; i < n; i++) {
- dst[i] = (GLuint) indexes[i];
+ dst[i] = (GLuint) source[i];
}
if (dstPacking->SwapBytes) {
_mesa_swap4( (GLuint *) dst, n );
@@ -3225,7 +3225,7 @@ _mesa_pack_index_span( const GLcontext *ctx, GLuint n,
GLint *dst = (GLint *) dest;
GLuint i;
for (i = 0; i < n; i++) {
- dst[i] = (GLint) indexes[i];
+ dst[i] = (GLint) source[i];
}
if (dstPacking->SwapBytes) {
_mesa_swap4( (GLuint *) dst, n );
@@ -3237,7 +3237,7 @@ _mesa_pack_index_span( const GLcontext *ctx, GLuint n,
GLfloat *dst = (GLfloat *) dest;
GLuint i;
for (i = 0; i < n; i++) {
- dst[i] = (GLfloat) indexes[i];
+ dst[i] = (GLfloat) source[i];
}
if (dstPacking->SwapBytes) {
_mesa_swap4( (GLuint *) dst, n );