set program->SamplersUsed bit when using a texture instruction
authorBrian <brian.paul@tungstengraphics.com>
Fri, 14 Dec 2007 18:16:49 +0000 (11:16 -0700)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 24 Sep 2008 17:13:31 +0000 (10:13 -0700)
src/mesa/main/texenvprogram.c

index d360fa3..be0b69b 100644 (file)
@@ -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);
    }
 }