small fix to match new _mesa_rescale_teximage2d
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 18 Oct 2004 08:07:26 +0000 (08:07 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 18 Oct 2004 08:07:26 +0000 (08:07 +0000)
src/mesa/drivers/dri/tdfx/tdfx_tex.c

index c6fa3505b34dccf99b1291f57090475932146d19..5e528dcf7f6d5875b5e5867a7de626ad6dcca7f5 100644 (file)
@@ -1194,6 +1194,7 @@ adjust2DRatio (GLcontext *ctx,
             + xoffset * mml->wScale) * texelBytes;
 
       _mesa_rescale_teximage2d(texelBytes,
+                               width,
                                dstRowStride, /* dst stride */
                                width, height,
                                newWidth, newHeight,
@@ -1217,6 +1218,7 @@ adjust2DRatio (GLcontext *ctx,
                               width, height, 1,
                               format, type, pixels, packing);
       _mesa_rescale_teximage2d(rawBytes,
+                               width,
                                newWidth * rawBytes, /* dst stride */
                                width, height, /* src */
                                newWidth, newHeight, /* dst */