diff options
-rw-r--r-- | src/mesa/swrast/s_nvfragprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index feb7939081b..9e35f4e4253 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -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: |