fixed duplicate variable problem
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 11 Apr 2000 20:54:49 +0000 (20:54 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 11 Apr 2000 20:54:49 +0000 (20:54 +0000)
src/mesa/main/colortab.c

index f456b691ccd24392199dd317ed33713c10642287..67456f5d10998d6d849f249f4522b719e4a8ba34 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: colortab.c,v 1.11 2000/04/11 15:07:48 brianp Exp $ */
+/* $Id: colortab.c,v 1.12 2000/04/11 20:54:49 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -114,7 +114,7 @@ decode_internal_format( GLint format )
 void 
 _mesa_ColorTable( GLenum target, GLenum internalFormat,
                   GLsizei width, GLenum format, GLenum type,
-                  const GLvoid *table )
+                  const GLvoid *data )
 {
    GET_CURRENT_CONTEXT(ctx);
    struct gl_texture_unit *texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit];
@@ -202,7 +202,7 @@ _mesa_ColorTable( GLenum target, GLenum internalFormat,
    if (!proxy) {
       _mesa_unpack_ubyte_color_span(ctx, width, table->Format,
                                     table->Table,  /* dest */
-                                    format, type, table,
+                                    format, type, data,
                                     &ctx->Unpack, GL_FALSE);
    }
    if (texObj) {