From 51ad219d6fbcdaa50e2f1b5854dfbbc4b8cab8fc Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 11 Apr 2008 09:35:18 -0600 Subject: fix failed assertion (parameter can be a PROGRAM_CONSTANT) --- src/mesa/shader/prog_execute.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/shader/prog_execute.c') diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index 00a375078b4..7f9687c36fc 100644 --- a/src/mesa/shader/prog_execute.c +++ b/src/mesa/shader/prog_execute.c @@ -89,6 +89,7 @@ get_register_pointer(const struct prog_src_register *source, else { const struct gl_program_parameter_list *params; ASSERT(source->File == PROGRAM_LOCAL_PARAM || + source->File == PROGRAM_CONSTANT || source->File == PROGRAM_STATE_VAR); params = machine->CurProgram->Parameters; if (reg < 0 || reg >= params->NumParameters) -- cgit v1.2.3