diff options
author | Brian Paul <[email protected]> | 2008-04-11 09:35:18 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-04-11 09:35:18 -0600 |
commit | 51ad219d6fbcdaa50e2f1b5854dfbbc4b8cab8fc (patch) | |
tree | f3ff1b903bcdc276e555b29f64e736ce6dc2894a | |
parent | b69eb0360afbdfe45a895f51e8b9b856e65e4879 (diff) |
fix failed assertion (parameter can be a PROGRAM_CONSTANT)
-rw-r--r-- | src/mesa/shader/prog_execute.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |