summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-09 14:58:40 -0600
committerBrian Paul <brianp@vmware.com>2009-04-09 15:02:48 -0600
commit1f4a7f3a2eafd99906105ff74b26ea3ae0f19030 (patch)
tree9b306b574ed2830c051e6aca2f584c76b5c07de3
parente53d6ab39bf04b2bb39ad23d5990494321ee77ce (diff)
st: remove unneeded "is compressed" check
The format indicates compressed vs. uncompressed.
-rw-r--r--src/mesa/state_tracker/st_texture.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
index 12ceac1091..fad513a556 100644
--- a/src/mesa/state_tracker/st_texture.c
+++ b/src/mesa/state_tracker/st_texture.c
@@ -127,8 +127,7 @@ st_texture_match_image(const struct pipe_texture *pt,
/* Check if this image's format matches the established texture's format.
*/
- if (st_mesa_format_to_pipe_format(image->TexFormat->MesaFormat) != pt->format ||
- image->IsCompressed != pt->compressed)
+ if (st_mesa_format_to_pipe_format(image->TexFormat->MesaFormat) != pt->format)
return GL_FALSE;
/* Test if this image's size matches what's expected in the