From: Brian Paul Date: Fri, 11 Apr 2008 15:35:18 +0000 (-0600) Subject: fix failed assertion (parameter can be a PROGRAM_CONSTANT) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51ad219d6fbcdaa50e2f1b5854dfbbc4b8cab8fc;p=mesa.git fix failed assertion (parameter can be a PROGRAM_CONSTANT) --- 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)