summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_texture.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-09 14:48:21 -0600
committerBrian Paul <brianp@vmware.com>2009-04-09 15:02:47 -0600
commitf12201567463c7aeb9b76c32f000d577a82e7f92 (patch)
tree03ef21a3adc29833e6c811824d9178a9007493be /src/mesa/state_tracker/st_texture.c
parent1ad2484f03cbe9ae6bd4ebe50d6894e570d65952 (diff)
st: remove comp_byte parameter to st_texture_create()
We can determine if the texture is compressed by checking the format.
Diffstat (limited to 'src/mesa/state_tracker/st_texture.c')
-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 3f90ad502c..12ceac1091 100644
--- a/src/mesa/state_tracker/st_texture.c
+++ b/src/mesa/state_tracker/st_texture.c
@@ -78,7 +78,6 @@ st_texture_create(struct st_context *st,
GLuint width0,
GLuint height0,
GLuint depth0,
- GLuint compress_byte,
GLuint usage )
{
struct pipe_texture pt, *newtex;
@@ -101,7 +100,7 @@ st_texture_create(struct st_context *st,
pt.width[0] = width0;
pt.height[0] = height0;
pt.depth[0] = depth0;
- pt.compressed = compress_byte ? 1 : 0;
+ pt.compressed = pf_is_compressed(format);
pf_get_block(format, &pt.block);
pt.tex_usage = usage;