From: Brian Date: Fri, 14 Dec 2007 18:16:49 +0000 (-0700) Subject: set program->SamplersUsed bit when using a texture instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b7e5a51f49e842f4114545f5eb171a597c83a66;p=mesa.git set program->SamplersUsed bit when using a texture instruction --- 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); } }