fix failed assertion (parameter can be a PROGRAM_CONSTANT)

This commit is contained in:
Brian Paul 2008-04-11 09:35:18 -06:00
parent b69eb0360a
commit 51ad219d6f
1 changed files with 1 additions and 0 deletions

View File

@ -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)