summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/arbfragparse.c
diff options
context:
space:
mode:
authorKarl Rasche <[email protected]>2003-11-23 19:29:18 +0000
committerKarl Rasche <[email protected]>2003-11-23 19:29:18 +0000
commit79e0dad79e24668fbb35aad970cb2b7b629a11fa (patch)
tree92cd4516111b057dad4d63c93beff67f55746cb1 /src/mesa/main/arbfragparse.c
parent4eebfa14e72c7c1f2572dbbc3bc7e85cf71f5926 (diff)
- parse_alias() Was totally borked
- forgot a ++ in texSrcBit switch - copy/paste error in arbfragparse.c
Diffstat (limited to 'src/mesa/main/arbfragparse.c')
-rw-r--r--src/mesa/main/arbfragparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/arbfragparse.c b/src/mesa/main/arbfragparse.c
index a12fd93cf37..1723e6c5d9a 100644
--- a/src/mesa/main/arbfragparse.c
+++ b/src/mesa/main/arbfragparse.c
@@ -184,7 +184,7 @@ _mesa_parse_arb_fragment_program(GLcontext * ctx, GLenum target,
const GLubyte * str, GLsizei len,
struct fragment_program *program)
{
- GLuint retval;
+ GLuint a, retval;
struct arb_program ap;
retval = _mesa_parse_arb_program(ctx, str, len, &ap);
@@ -200,8 +200,8 @@ _mesa_parse_arb_fragment_program(GLcontext * ctx, GLenum target,
program->InputsRead = ap.InputsRead;
program->OutputsWritten = ap.OutputsWritten;
- for (retval=0; retval<MAX_TEXTURE_IMAGE_UNITS; retval++)
- program->TexturesUsed[retval] = ap.TexturesUsed[retval];
+ for (a=0; a<MAX_TEXTURE_IMAGE_UNITS; a++)
+ program->TexturesUsed[a] = ap.TexturesUsed[a];
program->NumAluInstructions = ap.NumAluInstructions;
program->NumTexInstructions = ap.NumTexInstructions;
program->NumTexIndirections = ap.NumTexIndirections;