From bed8363aa6ab9f3dbd8052acc8c12d3de14f1399 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 12 Nov 2005 17:56:18 +0000 Subject: [PATCH] update some assertions --- src/mesa/shader/nvfragparse.c | 2 +- src/mesa/shader/nvvertexec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/shader/nvfragparse.c b/src/mesa/shader/nvfragparse.c index 6a8d250d7eb..52b36758324 100644 --- a/src/mesa/shader/nvfragparse.c +++ b/src/mesa/shader/nvfragparse.c @@ -1589,7 +1589,7 @@ PrintSrcReg(const struct fragment_program *program, _mesa_printf("{%g, %g, %g, %g}", v[0], v[1], v[2], v[3]); } else { - ASSERT(program->Parameters->Parameters[src->Index].Type + ASSERT(program->Base.Parameters->Parameters[src->Index].Type == PROGRAM_NAMED_PARAM); _mesa_printf("%s", program->Base.Parameters->Parameters[src->Index].Name); } 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, -- 2.30.2