mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
set program->SamplersUsed bit when using a texture instruction
This commit is contained in:
parent
e785f190f0
commit
1e3b07f363
1 changed files with 3 additions and 1 deletions
|
|
@ -936,10 +936,12 @@ static void load_texture( struct texenv_fragment_program *p, GLuint unit )
|
|||
|
||||
/* 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,
|
||||
tmp, WRITEMASK_XYZW,
|
||||
unit, dim, texcoord );
|
||||
p->program->Base.SamplersUsed |= (1 << unit);
|
||||
}
|
||||
else
|
||||
p->src_texture[unit] = get_zero(p);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue