Set NumInstructions (bug 5864)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Feb 2006 15:59:37 +0000 (15:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Feb 2006 15:59:37 +0000 (15:59 +0000)
src/mesa/shader/nvfragparse.c
src/mesa/shader/nvvertparse.c

index 95d3e42ef7001fc83466e542436aeba5b11eb0f6..c359cf35607b1252ccb8e617fafdf64a99b53753 100644 (file)
@@ -1540,6 +1540,7 @@ _mesa_parse_nv_fragment_program(GLcontext *ctx, GLenum dstTarget,
          _mesa_free(program->Base.Instructions);
       }
       program->Base.Instructions = newInst;
+      program->Base.NumInstructions = parseState.numInst;
       program->Base.InputsRead = parseState.inputsRead;
       program->Base.OutputsWritten = parseState.outputsWritten;
       for (u = 0; u < ctx->Const.MaxTextureImageUnits; u++)
index 7aac631934a337148ed1ba2fe93730788d472308..accf6a36497b38b0d53304ce84d3fbda73ce2e54 100644 (file)
@@ -1388,6 +1388,7 @@ _mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget,
       }
       program->Base.Instructions = newInst;
       program->Base.InputsRead = parseState.inputsRead;
+      program->Base.NumInstructions = parseState.numInst;
       program->Base.OutputsWritten = parseState.outputsWritten;
       program->IsPositionInvariant = parseState.isPositionInvariant;
       program->IsNVProgram = GL_TRUE;