From fd89396012bf4e2f36315e79ee180f0ca4eaf32e Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 22 Feb 2007 16:02:18 -0700 Subject: [PATCH] fix assertion --- src/mesa/shader/nvvertexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/shader/nvvertexec.c b/src/mesa/shader/nvvertexec.c index cf7b3d448d1..7dc0edbd9e6 100644 --- a/src/mesa/shader/nvvertexec.c +++ b/src/mesa/shader/nvvertexec.c @@ -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); -- 2.30.2