[Mesa-dev] [PATCH 8/9] nir: Add braces around multi-line loop.

Kenneth Graunke kenneth at whitecape.org
Fri Sep 18 08:37:14 PDT 2015


This was correct but not our usual style.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/glsl/nir/nir_normalize_cubemap_coords.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glsl/nir/nir_normalize_cubemap_coords.c b/src/glsl/nir/nir_normalize_cubemap_coords.c
index ca68bd7..dd6de40 100644
--- a/src/glsl/nir/nir_normalize_cubemap_coords.c
+++ b/src/glsl/nir/nir_normalize_cubemap_coords.c
@@ -98,7 +98,8 @@ normalize_cubemap_coords_impl(nir_function_impl *impl)
 void
 nir_normalize_cubemap_coords(nir_shader *shader)
 {
-   nir_foreach_overload(shader, overload)
+   nir_foreach_overload(shader, overload) {
       if (overload->impl)
          normalize_cubemap_coords_impl(overload->impl);
+   }
 }
-- 
2.5.1



More information about the mesa-dev mailing list