small fix to match new _mesa_rescale_teximage2d
This commit is contained in:
@@ -1194,6 +1194,7 @@ adjust2DRatio (GLcontext *ctx,
|
|||||||
+ xoffset * mml->wScale) * texelBytes;
|
+ xoffset * mml->wScale) * texelBytes;
|
||||||
|
|
||||||
_mesa_rescale_teximage2d(texelBytes,
|
_mesa_rescale_teximage2d(texelBytes,
|
||||||
|
width,
|
||||||
dstRowStride, /* dst stride */
|
dstRowStride, /* dst stride */
|
||||||
width, height,
|
width, height,
|
||||||
newWidth, newHeight,
|
newWidth, newHeight,
|
||||||
@@ -1217,6 +1218,7 @@ adjust2DRatio (GLcontext *ctx,
|
|||||||
width, height, 1,
|
width, height, 1,
|
||||||
format, type, pixels, packing);
|
format, type, pixels, packing);
|
||||||
_mesa_rescale_teximage2d(rawBytes,
|
_mesa_rescale_teximage2d(rawBytes,
|
||||||
|
width,
|
||||||
newWidth * rawBytes, /* dst stride */
|
newWidth * rawBytes, /* dst stride */
|
||||||
width, height, /* src */
|
width, height, /* src */
|
||||||
newWidth, newHeight, /* dst */
|
newWidth, newHeight, /* dst */
|
||||||
|
Reference in New Issue
Block a user