diff options
author | Brian <[email protected]> | 2007-12-14 11:16:49 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-14 11:16:49 -0700 |
commit | 1e3b07f363e6bf512ab1a5c620656985aece40fd (patch) | |
tree | e76e4ac54b7bacd65928b2d4b4959c9a7948638d /src/mesa | |
parent | e785f190f0d49f0367f7468c22b77962d0f14ea0 (diff) |
set program->SamplersUsed bit when using a texture instruction
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index efb3b35f6a2..1e46d8c3754 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -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); } |