From e6de1edaf0479f44773e5c841612937c7a891978 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Wed, 30 Aug 2006 11:55:18 +0000 Subject: [PATCH] fix initialization of native resource usage of vertex/fragment programs --- src/mesa/shader/arbprogparse.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 734c753eb6f..4edd921b160 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -4082,6 +4082,11 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target, program->Base.NumParameters = ap.Base.NumParameters; program->Base.NumAttributes = ap.Base.NumAttributes; program->Base.NumAddressRegs = ap.Base.NumAddressRegs; + program->Base.NumNativeInstructions = ap.Base.NumNativeInstructions; + program->Base.NumNativeTemporaries = ap.Base.NumNativeTemporaries; + program->Base.NumNativeParameters = ap.Base.NumNativeParameters; + program->Base.NumNativeAttributes = ap.Base.NumNativeAttributes; + program->Base.NumNativeAddressRegs = ap.Base.NumNativeAddressRegs; program->NumAluInstructions = ap.NumAluInstructions; program->NumTexInstructions = ap.NumTexInstructions; program->NumTexIndirections = ap.NumTexIndirections; @@ -4137,6 +4142,11 @@ _mesa_parse_arb_vertex_program(GLcontext *ctx, GLenum target, program->Base.NumParameters = ap.Base.NumParameters; program->Base.NumAttributes = ap.Base.NumAttributes; program->Base.NumAddressRegs = ap.Base.NumAddressRegs; + program->Base.NumNativeInstructions = ap.Base.NumNativeInstructions; + program->Base.NumNativeTemporaries = ap.Base.NumNativeTemporaries; + program->Base.NumNativeParameters = ap.Base.NumNativeParameters; + program->Base.NumNativeAttributes = ap.Base.NumNativeAttributes; + program->Base.NumNativeAddressRegs = ap.Base.NumNativeAddressRegs; program->Base.InputsRead = ap.Base.InputsRead; program->Base.OutputsWritten = ap.Base.OutputsWritten; program->IsPositionInvariant = ap.HintPositionInvariant; -- 2.30.2