mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-12 18:00:29 +01:00
fix failed assertion (parameter can be a PROGRAM_CONSTANT)
This commit is contained in:
parent
b69eb0360a
commit
51ad219d6f
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue