diff options
author | Eric Anholt <eric@anholt.net> | 2008-09-12 15:48:13 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-09-12 15:48:13 -0700 |
commit | 8db761409dadc2e899d4e7107eff3aa07b07aa11 (patch) | |
tree | cc398df6f9be467f384d029bd1d6e3e3c106169c /src/mesa/drivers/dri/intel/intel_tex_image.c | |
parent | bdc8ac4ae2c711e2569618136bf7d9c7b25be53e (diff) |
intel: Add a width field to regions, and use it for making miptrees in TFP.
Otherwise, we would use the pitch as width of the texture, and compiz would
render the pitch padding on the right hand side.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_image.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index 70b0b3e245..1820d3dc05 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_image.c +++ b/src/mesa/drivers/dri/intel/intel_tex_image.c @@ -757,7 +757,7 @@ intelSetTexBuffer(__DRIcontext *pDRICtx, GLint target, __DRIdrawable *dPriv) intelObj->mt = mt; texImage = _mesa_get_tex_image(&intel->ctx, texObj, target, level); _mesa_init_teximage_fields(&intel->ctx, target, texImage, - rb->region->pitch, rb->region->height, 1, + rb->region->width, rb->region->height, 1, 0, internalFormat); intelImage = intel_texture_image(texImage); |