update an assertion
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 12 Nov 2005 17:59:05 +0000 (17:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 12 Nov 2005 17:59:05 +0000 (17:59 +0000)
src/mesa/swrast/s_nvfragprog.c

index feb7939081bc2e9d33fb43f15058d842eb78e47d..9e35f4e4253b56b79000040cc69fa6e21dc429c2 100644 (file)
@@ -134,7 +134,7 @@ get_register_pointer( GLcontext *ctx,
       case PROGRAM_STATE_VAR:
          /* Fallthrough */
       case PROGRAM_NAMED_PARAM:
-         ASSERT(source->Index < (GLint) program->Parameters->NumParameters);
+         ASSERT(source->Index < (GLint) program->Base.Parameters->NumParameters);
          src = program->Base.Parameters->ParameterValues[source->Index];
          break;
       default: