fix assertion
authorBrian <brian@yutani.localnet.net>
Thu, 22 Feb 2007 23:02:18 +0000 (16:02 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 22 Feb 2007 23:02:18 +0000 (16:02 -0700)
src/mesa/shader/nvvertexec.c

index cf7b3d448d1687575f754c8e8d293cfa44c7538e..7dc0edbd9e64d3f00bf010c981bb971143c12ce2 100644 (file)
@@ -268,7 +268,7 @@ get_register_pointer( GLcontext *ctx,
             return machine->Inputs[source->Index];
          case PROGRAM_OUTPUT:
             /* This is only needed for the PRINT instruction */
-            ASSERT(source->Index < MAX_NV_VERTEX_PROGRAM_OUTPUTS);
+            ASSERT(source->Index < VERT_RESULT_MAX);
             return machine->Outputs[source->Index];
          case PROGRAM_LOCAL_PARAM:
             ASSERT(source->Index < MAX_PROGRAM_LOCAL_PARAMS);