Mesa (master): set program-> SamplersUsed bit when using a texture instruction

Keith Whitwell keithw at kemper.freedesktop.org
Wed Sep 24 17:37:27 UTC 2008


Module: Mesa
Branch: master
Commit: 9b7e5a51f49e842f4114545f5eb171a597c83a66
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b7e5a51f49e842f4114545f5eb171a597c83a66

Author: Brian <brian.paul at tungstengraphics.com>
Date:   Fri Dec 14 11:16:49 2007 -0700

set program->SamplersUsed bit when using a texture instruction

---

 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 d360fa3..be0b69b 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);
    }
 }




More information about the mesa-commit mailing list