summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-18 18:31:47 -0600
committerBrian Paul <[email protected]>2008-09-26 07:25:36 -0600
commit1ef90b3f9af12102101e5d30b2d73cbdabd86f24 (patch)
tree55bee425020c961d35d8f87485322bcf4a812c15 /src/mesa
parent092748990f75a0348f24a40e92872f08a9958e66 (diff)
mesa: add some braces
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/prog_execute.c3
1 files changed, 2 insertions, 1 deletions
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 ||