fix parameters to StoreImage calls
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 12 May 2004 15:05:53 +0000 (15:05 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 12 May 2004 15:05:53 +0000 (15:05 +0000)
src/mesa/drivers/dri/tdfx/tdfx_tex.c

index 2a386a7c0360fd39319799f19034dcd6a719e9cf..fee24639ce555db7abcf1e2c369108db5a1ff9eb 100644 (file)
@@ -1051,7 +1051,7 @@ tdfxTexSubImage2D(GLcontext *ctx, GLenum target, GLint level,
         }
 
         texImage->TexFormat->StoreImage(ctx, 2, texImage->Format,
-                                        &texImage->Format, texImage->Data,
+                                        texImage->TexFormat, texImage->Data,
                                         0, 0, 0, /* dstX/Y/Zoffset */
                                         width * texelBytes, /* dstRowStride */
                                         0, /* dstImageStride */
@@ -1083,7 +1083,7 @@ tdfxTexSubImage2D(GLcontext *ctx, GLenum target, GLint level,
     else {
         /* no rescaling needed */
         texImage->TexFormat->StoreImage(ctx, 2, texImage->Format,
-                                    &texImage->Format, texImage->Data,
+                                    texImage->TexFormat, texImage->Data,
                                     xoffset, yoffset, 0,
                                     mml->width * texelBytes, /* dstRowStride */
                                     0, /* dstImageStride */