r200: only emit unitneeded textures

This commit is contained in:
Dave Airlie 2009-06-26 15:04:30 +10:00
parent 622858884f
commit db54579628

View file

@ -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 {