i915tex: Fix some mismatches between texels or bytes for pitch/stride.

This commit is contained in:
Michel Dänzer
2007-04-09 14:57:08 +02:00
parent c96974f78c
commit e8292d28e4
2 changed files with 2 additions and 1 deletions
@@ -317,7 +317,7 @@ intel_miptree_image_data(struct intel_context *intel,
0, 0, /* source x, y */
dst->level[level].width, height); /* width, height */
src += src_image_pitch;
src += src_image_pitch * dst->cpp;
}
}
@@ -614,6 +614,7 @@ intel_get_tex_image(GLcontext * ctx, GLenum target, GLint level,
intelImage->level,
&intelImage->base.RowStride,
intelImage->base.ImageOffsets);
intelImage->base.RowStride /= intelImage->mt->cpp;
}
else {
/* Otherwise, the image should actually be stored in