set program->SamplersUsed bit when using a texture instruction

This commit is contained in:
Brian
2007-12-14 11:16:49 -07:00
parent e785f190f0
commit 1e3b07f363

View File

@@ -936,10 +936,12 @@ static void load_texture( struct texenv_fragment_program *p, GLuint unit )
/* TODO: Use D0_MASK_XY where possible. /* TODO: Use D0_MASK_XY where possible.
*/ */
if (p->state->unit[unit].enabled) if (p->state->unit[unit].enabled) {
p->src_texture[unit] = emit_texld( p, OPCODE_TXP, p->src_texture[unit] = emit_texld( p, OPCODE_TXP,
tmp, WRITEMASK_XYZW, tmp, WRITEMASK_XYZW,
unit, dim, texcoord ); unit, dim, texcoord );
p->program->Base.SamplersUsed |= (1 << unit);
}
else else
p->src_texture[unit] = get_zero(p); p->src_texture[unit] = get_zero(p);
} }