From 05a6f2fd484bab59c6e6a381f58808adc26619f1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 21 Apr 2004 18:09:14 +0000 Subject: Fix up some assorted issues with initialization of vertex program registers. Some need to be set per-vertex, other per-primitive. Cleared that up. Only need to init temp/result registers if executing an NV vertex program. --- src/mesa/shader/nvvertparse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/shader/nvvertparse.c') diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c index bacf5a5af3..88fa32c1d4 100644 --- a/src/mesa/shader/nvvertparse.c +++ b/src/mesa/shader/nvvertparse.c @@ -1300,6 +1300,7 @@ _mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget, program->InputsRead = parseState.inputsRead; program->OutputsWritten = parseState.outputsWritten; program->IsPositionInvariant = parseState.isPositionInvariant; + program->IsNVProgram = GL_TRUE; #ifdef DEBUG _mesa_printf("--- glLoadProgramNV result ---\n"); -- cgit v1.2.3