diff options
author | Brian <[email protected]> | 2007-12-14 11:16:49 -0700 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-09-24 10:13:31 -0700 |
commit | 9b7e5a51f49e842f4114545f5eb171a597c83a66 (patch) | |
tree | 56eb5d29bc47dcad9c0d562191b946a0c10ea454 /src/mesa/main/texenvprogram.c | |
parent | 93fef22d05d0fb6f011d48d2fde533555c1695a2 (diff) |
set program->SamplersUsed bit when using a texture instruction
Diffstat (limited to 'src/mesa/main/texenvprogram.c')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index d360fa35c02..be0b69b1998 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -955,7 +955,10 @@ static void load_texture( struct texenv_fragment_program *p, GLuint unit ) unit, dim, texcoord ); if (p->state->unit[unit].shadow) p->program->Base.ShadowSamplers |= 1 << unit; - } else + + p->program->Base.SamplersUsed |= (1 << unit); + } + else p->src_texture[unit] = get_zero(p); } } |