fix parameters to StoreImage()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 May 2004 18:07:30 +0000 (18:07 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 May 2004 18:07:30 +0000 (18:07 +0000)
src/mesa/drivers/dri/tdfx/tdfx_tex.c

index fee24639ce555db7abcf1e2c369108db5a1ff9eb..771e2bcadbcbe138e88f2ead850da2acb08e9bdf 100644 (file)
@@ -963,7 +963,7 @@ tdfxTexImage2D(GLcontext *ctx, GLenum target, GLint level,
         }
         /* unpack image, apply transfer ops and store in tempImage */
         texImage->TexFormat->StoreImage(ctx, 2, texImage->Format,
-                                        &texImage->Format, tempImage,
+                                        texImage->TexFormat, tempImage,
                                         0, 0, 0, /* dstX/Y/Zoffset */
                                         width * texelBytes, /* dstRowStride */
                                         0, /* dstImageStride */
@@ -993,7 +993,7 @@ tdfxTexImage2D(GLcontext *ctx, GLenum target, GLint level,
       }
       /* unpack image, apply transfer ops and store in texImage->Data */
       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 */