summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-18 20:58:08 -0700
committerBrian Paul <brianp@vmware.com>2009-11-18 20:58:08 -0700
commit85ef3b94739af8fd68256747aea2fe0a10f8f782 (patch)
tree8898f03806e9bf9d1070fa4ada5d68cf20ed2fc8
parentcda71cd96e44be7e745930b41f49e55f29ab9175 (diff)
intel: remove redundant texelBytes variable
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_image.c2
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 80a8a1eb02..0455f0a5ad 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -387,8 +387,8 @@ intelTexImage(GLcontext * ctx,
assert(intelImage->mt);
} else if (intelImage->base.Border == 0) {
int comp_byte = 0;
- GLuint texelBytes = _mesa_get_format_bytes(intelImage->base.TexFormat);
GLenum baseFormat = _mesa_get_format_base_format(intelImage->base.TexFormat);
+
if (_mesa_is_format_compressed(intelImage->base.TexFormat)) {
comp_byte = intel_compressed_num_bytes(intelImage->base.TexFormat);
}