summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/tdfx
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-10-18 08:07:26 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-10-18 08:07:26 +0000
commitc99a99b3bc4595162f8a8927b8d2d53c78edc1a0 (patch)
tree3850a899447f2fdf25797ad5fa64956f8d1b1b24 /src/mesa/drivers/dri/tdfx
parent1cfe1e8925f8e1b89df5330895255a038be7f122 (diff)
small fix to match new _mesa_rescale_teximage2d
Diffstat (limited to 'src/mesa/drivers/dri/tdfx')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_tex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
index c6fa3505b3..5e528dcf7f 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
@@ -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 */