[Mesa-dev] [PATCH] glsl/parser: (trivial) fix indentation in one function

Tobias Klausmann tobias.johannes.klausmann at mni.thm.de
Wed Jan 21 13:12:35 PST 2015


Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
---
 src/glsl/glcpp/glcpp-parse.y | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index e5bebe5..8b545da 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -2401,8 +2401,8 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
 	         add_builtin_define(parser, "GL_ARB_fragment_coord_conventions",
 				    1);
 
-              if (extensions->ARB_fragment_layer_viewport)
-                 add_builtin_define(parser, "GL_ARB_fragment_layer_viewport", 1);
+	      if (extensions->ARB_fragment_layer_viewport)
+	         add_builtin_define(parser, "GL_ARB_fragment_layer_viewport", 1);
 
 	      if (extensions->ARB_explicit_attrib_location)
 	         add_builtin_define(parser, "GL_ARB_explicit_attrib_location", 1);
@@ -2449,7 +2449,8 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
 	         add_builtin_define(parser, "GL_AMD_vertex_shader_layer", 1);
 
 	      if (extensions->AMD_vertex_shader_viewport_index)
-	         add_builtin_define(parser, "GL_AMD_vertex_shader_viewport_index", 1);
+	         add_builtin_define(parser, "GL_AMD_vertex_shader_viewport_index",
+                   1);
 
 	      if (extensions->ARB_shading_language_420pack)
 	         add_builtin_define(parser, "GL_ARB_shading_language_420pack", 1);
@@ -2466,17 +2467,17 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
 	      if (extensions->ARB_viewport_array)
 	         add_builtin_define(parser, "GL_ARB_viewport_array", 1);
 
-              if (extensions->ARB_compute_shader)
-                 add_builtin_define(parser, "GL_ARB_compute_shader", 1);
+	      if (extensions->ARB_compute_shader)
+             add_builtin_define(parser, "GL_ARB_compute_shader", 1);
 
 	      if (extensions->ARB_shader_image_load_store)
 	         add_builtin_define(parser, "GL_ARB_shader_image_load_store", 1);
 
-              if (extensions->ARB_derivative_control)
-                 add_builtin_define(parser, "GL_ARB_derivative_control", 1);
+	      if (extensions->ARB_derivative_control)
+	         add_builtin_define(parser, "GL_ARB_derivative_control", 1);
 
-              if (extensions->ARB_shader_precision)
-                 add_builtin_define(parser, "GL_ARB_shader_precision", 1);
+	      if (extensions->ARB_shader_precision)
+	         add_builtin_define(parser, "GL_ARB_shader_precision", 1);
 	   }
 	}
 
-- 
2.2.1



More information about the mesa-dev mailing list