Index: src/mesa/shader/nvfragparse.c =================================================================== RCS file: /cvs/mesa/Mesa/src/mesa/shader/nvfragparse.c,v retrieving revision 1.20 diff -u -p -r1.20 nvfragparse.c --- src/mesa/shader/nvfragparse.c 6 Dec 2005 15:41:43 -0000 1.20 +++ src/mesa/shader/nvfragparse.c 12 Feb 2006 01:53:19 -0000 @@ -1540,6 +1540,7 @@ _mesa_parse_nv_fragment_program(GLcontex _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: src/mesa/shader/nvvertparse.c =================================================================== RCS file: /cvs/mesa/Mesa/src/mesa/shader/nvvertparse.c,v retrieving revision 1.17 diff -u -p -r1.17 nvvertparse.c --- src/mesa/shader/nvvertparse.c 6 Dec 2005 15:41:43 -0000 1.17 +++ src/mesa/shader/nvvertparse.c 12 Feb 2006 01:53:20 -0000 @@ -1387,6 +1387,7 @@ _mesa_parse_nv_vertex_program(GLcontext _mesa_free(program->Base.Instructions); } program->Base.Instructions = newInst; + program->Base.NumInstructions = parseState.numInst; program->Base.InputsRead = parseState.inputsRead; program->Base.OutputsWritten = parseState.outputsWritten; program->IsPositionInvariant = parseState.isPositionInvariant;