projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e785f19
)
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
Brian
<brian.paul@tungstengraphics.com>
Fri, 14 Dec 2007 18:16:49 +0000
(11:16 -0700)
src/mesa/main/texenvprogram.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texenvprogram.c
b/src/mesa/main/texenvprogram.c
index efb3b35f6a2383feea742c38c86b68332f7ece42..1e46d8c3754a3d77e74869adbe6d44ecd4d20e03 100644
(file)
--- a/
src/mesa/main/texenvprogram.c
+++ b/
src/mesa/main/texenvprogram.c
@@
-936,10
+936,12
@@
static void load_texture( struct texenv_fragment_program *p, GLuint unit )
/* TODO: Use D0_MASK_XY where possible.
*/
- if (p->state->unit[unit].enabled)
+ if (p->state->unit[unit].enabled)
{
p->src_texture[unit] = emit_texld( p, OPCODE_TXP,
tmp, WRITEMASK_XYZW,
unit, dim, texcoord );
+ p->program->Base.SamplersUsed |= (1 << unit);
+ }
else
p->src_texture[unit] = get_zero(p);
}