mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: add some braces
This commit is contained in:
parent
092748990f
commit
1ef90b3f9a
1 changed files with 2 additions and 1 deletions
|
|
@ -81,11 +81,12 @@ get_register_pointer(const struct prog_src_register *source,
|
|||
{
|
||||
if (source->RelAddr) {
|
||||
const GLint reg = source->Index + machine->AddressReg[0][0];
|
||||
if (source->File == PROGRAM_ENV_PARAM)
|
||||
if (source->File == PROGRAM_ENV_PARAM) {
|
||||
if (reg < 0 || reg >= MAX_PROGRAM_ENV_PARAMS)
|
||||
return ZeroVec;
|
||||
else
|
||||
return machine->EnvParams[reg];
|
||||
}
|
||||
else {
|
||||
const struct gl_program_parameter_list *params;
|
||||
ASSERT(source->File == PROGRAM_LOCAL_PARAM ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue