set SamplerUnit[] entry in load_texture() just to be safe

This commit is contained in:
Brian
2007-12-14 11:42:28 -07:00
parent 814d4ff83a
commit fce4612f8a

View File

@@ -941,6 +941,10 @@ static void load_texture( struct texenv_fragment_program *p, GLuint unit )
tmp, WRITEMASK_XYZW,
unit, dim, texcoord );
p->program->Base.SamplersUsed |= (1 << unit);
/* This identity mapping should already be in place
* (see _mesa_init_program_struct()) but let's be safe.
*/
p->program->Base.SamplerUnits[unit] = unit;
}
else
p->src_texture[unit] = get_zero(p);