mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
glsl: allow uniforms
This commit is contained in:
parent
effb73befa
commit
53f5b9741a
1 changed files with 2 additions and 1 deletions
|
|
@ -90,7 +90,8 @@ get_register_pointer(const struct prog_src_register *source,
|
|||
const struct gl_program_parameter_list *params;
|
||||
ASSERT(source->File == PROGRAM_LOCAL_PARAM ||
|
||||
source->File == PROGRAM_CONSTANT ||
|
||||
source->File == PROGRAM_STATE_VAR);
|
||||
source->File == PROGRAM_STATE_VAR ||
|
||||
source->File == PROGRAM_UNIFORM);
|
||||
params = machine->CurProgram->Parameters;
|
||||
if (reg < 0 || reg >= params->NumParameters)
|
||||
return ZeroVec;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue