summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/nvvertexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/nvvertexec.c')
-rw-r--r--src/mesa/shader/nvvertexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/nvvertexec.c b/src/mesa/shader/nvvertexec.c
index a413dcbc291..0e0e459b289 100644
--- a/src/mesa/shader/nvvertexec.c
+++ b/src/mesa/shader/nvvertexec.c
@@ -260,7 +260,7 @@ get_register_pointer( const struct prog_src_register *source,
ASSERT(source->Index < MAX_NV_VERTEX_PROGRAM_PARAMS);
return state->Parameters[source->Index];
case PROGRAM_STATE_VAR:
- ASSERT(source->Index < state->Current->Parameters->NumParameters);
+ ASSERT(source->Index < state->Current->Base.Parameters->NumParameters);
return state->Current->Base.Parameters->ParameterValues[source->Index];
default:
_mesa_problem(NULL,