[Mesa-dev] [PATCH 4/9] mesa: fix misleading indentation

Tapani Pälli tapani.palli at intel.com
Thu May 11 10:12:23 UTC 2017



On 04/12/2017 01:04 AM, Thomas Hindoe Paaboel Andersen wrote:
> ---
>   src/mesa/main/shaderapi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
> index 187475f..9efb2e0 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -1110,7 +1110,7 @@ _mesa_link_program(struct gl_context *ctx, struct gl_shader_program *shProg)
>                ctx->_Shader->CurrentProgram[stage]->Id == shProg->Name) {
>               programs_in_use |= 1 << stage;
>            }
> -   }
> +      }

IMO while fixing this you should also add braces to the toplevel condition



>      FLUSH_VERTICES(ctx, 0);
>      _mesa_glsl_link_shader(ctx, shProg);
> 


More information about the mesa-dev mailing list