summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-10-26 09:21:04 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-10-26 09:21:04 +0000
commit98b607b57da6f7d2ae6e02906c1ae72cd1c3f311 (patch)
treec43f16cf8bc7af40d7153cd51605a6348af566e8 /src
parent20cdbc068e44ef268606b089305e8f7e5f67514e (diff)
fixed stupid error in GL_RGA case in gl_pack_rgba_span()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/image.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 70aa5ef3c4..7959668cdc 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.9 1999/10/22 12:49:52 brianp Exp $ */
+/* $Id: image.c,v 1.10 1999/10/26 09:21:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1692,9 +1692,9 @@ void gl_pack_rgba_span( const GLcontext *ctx,
GLint i;
GLubyte *dest = (GLubyte *) destination;
for (i = 0; i < n; i++) {
- dest[i+0] = rgba[i][RCOMP];
- dest[i+1] = rgba[i][GCOMP];
- dest[i+2] = rgba[i][BCOMP];
+ dest[0] = rgba[i][RCOMP];
+ dest[1] = rgba[i][GCOMP];
+ dest[2] = rgba[i][BCOMP];
dest += 3;
}
}
@@ -1708,7 +1708,7 @@ void gl_pack_rgba_span( const GLcontext *ctx,
const GLint comps = gl_components_in_format(format);
GLuint i;
- assert( n < MAX_WIDTH );
+ assert(n <= MAX_WIDTH);
/* convert color components to floating point */
for (i=0;i<n;i++) {