mesa: add some braces
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 19 Sep 2008 00:31:47 +0000 (18:31 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 13:25:36 +0000 (07:25 -0600)
src/mesa/shader/prog_execute.c

index 5afd9eb1534914c3e880a704c0d9ceb93c413fd4..768e936d5f60f16c314c4ebc94e15f230d195e9c 100644 (file)
@@ -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 ||