mesa: add some braces
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user