projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93fef22
)
set program->SamplersUsed bit when using a texture instruction
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 14 Dec 2007 18:16:49 +0000
(11:16 -0700)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 24 Sep 2008 17:13:31 +0000
(10:13 -0700)
src/mesa/main/texenvprogram.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texenvprogram.c
b/src/mesa/main/texenvprogram.c
index
d360fa3
..
be0b69b
100644
(file)
--- 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);
}
}