intelTexSubimage: Fix last parameter for intel_miptree_image_map().
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 14 Dec 2006 09:24:09 +0000 (10:24 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 14 Dec 2006 10:01:38 +0000 (11:01 +0100)
src/mesa/drivers/dri/i915tex/intel_tex_subimage.c

index 25a2dca68573a89d6a2051e1f0fec239032dd8c6..3935787806b75c88f7c151a118045dbd36692913 100644 (file)
@@ -50,7 +50,6 @@ intelTexSubimage(GLcontext * ctx,
 {
    struct intel_context *intel = intel_context(ctx);
    struct intel_texture_image *intelImage = intel_texture_image(texImage);
-   GLuint dstImageStride;
    GLuint dstRowStride;
 
    DBG("%s target %s level %d offset %d,%d %dx%d\n", __FUNCTION__,
@@ -79,7 +78,7 @@ intelTexSubimage(GLcontext * ctx,
                                                intelImage->face,
                                                intelImage->level,
                                                &dstRowStride,
-                                               &dstImageStride);
+                                               texImage->ImageOffsets);
 
    assert(dstRowStride);