summaryrefslogtreecommitdiff
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-24 17:33:30 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-24 17:33:30 -0700
commit6f8214cae613bc3bead215214e092c07793975e7 (patch)
tree35c356b70644a2bc3aa0d2a4e88ecbac4d4b3af4 /src/mesa/shader/arbprogparse.c
parentef80c2012dff343eb5ff571cea8377ff6a87c0c5 (diff)
ARB prog: get frag prog texture info from the right place
This gets basic texturing working. w00t!
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r--src/mesa/shader/arbprogparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 36470b669c..42a5378999 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -3971,11 +3971,11 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target,
program->Base.InputsRead = prog.InputsRead;
program->Base.OutputsWritten = prog.OutputsWritten;
for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++) {
- program->Base.TexturesUsed[i] = state.fragment.TexturesUsed[i];
- if (state.fragment.TexturesUsed[i])
+ program->Base.TexturesUsed[i] = prog.TexturesUsed[i];
+ if (prog.TexturesUsed[i])
program->Base.SamplersUsed |= (1 << i);
}
- program->Base.ShadowSamplers = state.fragment.ShadowSamplers;
+ program->Base.ShadowSamplers = prog.ShadowSamplers;
switch (state.option.Fog) {
case OPTION_FOG_EXP: program->FogOption = GL_EXP; break;
case OPTION_FOG_EXP2: program->FogOption = GL_EXP2; break;