fixed compilation errors
authorDaniel Borca <dborca@users.sourceforge.net>
Wed, 20 Oct 2004 11:59:28 +0000 (11:59 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Wed, 20 Oct 2004 11:59:28 +0000 (11:59 +0000)
src/mesa/drivers/glide/fxddtex.c
src/mesa/drivers/glide/fxsetup.c

index 2ac3ec005ddbe3248218515e8457e665914f75df..8665db7a93d0d12784e07693c7504008c63865e0 100644 (file)
@@ -1267,6 +1267,7 @@ adjust2DRatio (GLcontext *ctx,
             + xoffset * mml->wScale) * texelBytes;
 
       _mesa_rescale_teximage2d(texelBytes,
+                               width,
                                dstRowStride, /* dst stride */
                                width, height,
                                newWidth, newHeight,
@@ -1290,6 +1291,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 */
index 71b66fcc1d7b15a4081eb7348a8070116145004a..2496d1d8bf60a1de15ca364ae1346e80b972814c 100644 (file)
@@ -69,11 +69,13 @@ fxTexValidate(GLcontext * ctx, struct gl_texture_object *tObj)
 
 #if FX_RESCALE_BIG_TEXURES_HACK
 {
-   extern void _mesa_rescale_teximage2d( GLuint bytesPerPixel,
-                                         GLuint dstRowStride,
-                                         GLint srcWidth, GLint srcHeight,
-                                         GLint dstWidth, GLint dstHeight,
-                                         const GLvoid *srcImage, GLvoid *dstImage );
+extern void
+_mesa_rescale_teximage2d (GLuint bytesPerPixel,
+                         GLuint srcStrideInPixels,
+                         GLuint dstRowStride,
+                         GLint srcWidth, GLint srcHeight,
+                         GLint dstWidth, GLint dstHeight,
+                         const GLvoid *srcImage, GLvoid *dstImage);
    fxMesaContext fxMesa = FX_CONTEXT(ctx);
    /* [dBorca]
     * Fake textures larger than HW supports:
@@ -111,6 +113,7 @@ fxTexValidate(GLcontext * ctx, struct gl_texture_object *tObj)
          _h *= mml->hScale;
          texImage->Data = MESA_PBUFFER_ALLOC(_w * _h * texelBytes);
          _mesa_rescale_teximage2d(texelBytes,
+                                  mml->width,
                                   _w * texelBytes, /* dst stride */
                                   mml->width, mml->height, /* src */
                                   _w, _h, /* dst */