From: Brian Paul Date: Fri, 19 Sep 2008 00:31:47 +0000 (-0600) Subject: mesa: add some braces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ef90b3f9af12102101e5d30b2d73cbdabd86f24;p=mesa.git mesa: add some braces --- diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index 5afd9eb1534..768e936d5f6 100644 --- a/src/mesa/shader/prog_execute.c +++ b/src/mesa/shader/prog_execute.c @@ -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 ||