diff options
author | Dave Airlie <[email protected]> | 2009-06-26 15:04:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-06-26 15:09:11 +1000 |
commit | db545796289abe4b771b3ee23a4559674bebe37a (patch) | |
tree | 57171172b42b685af802c422eccf2c96e4ba2c6c /src/mesa | |
parent | 622858884fc5923c9e7a0c1bb0e80b53f0acb5a7 (diff) |
r200: only emit unitneeded textures
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index f88ec877c5a..c7df4b2587e 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -585,6 +585,8 @@ static void tex_emit_cs(GLcontext *ctx, struct radeon_state_atom *atom) radeon_mipmap_level *lvl; int hastexture = 1; + if (!r200->state.texture.unit[i].unitneeded) + hastexture = 0; if (!t) hastexture = 0; else { |