From ee40c4fb34bd06ecc6dd6f2e658ca2c2c20af952 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 15 Feb 2006 15:59:37 +0000 Subject: [PATCH] Set NumInstructions (bug 5864) --- src/mesa/shader/nvfragparse.c | 1 + src/mesa/shader/nvvertparse.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/shader/nvfragparse.c b/src/mesa/shader/nvfragparse.c index 95d3e42ef70..c359cf35607 100644 --- a/src/mesa/shader/nvfragparse.c +++ b/src/mesa/shader/nvfragparse.c @@ -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++) diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c index 7aac631934a..accf6a36497 100644 --- a/src/mesa/shader/nvvertparse.c +++ b/src/mesa/shader/nvvertparse.c @@ -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; -- 2.30.2