bug 905853 - gfx/gl/GLConsts.h nits fix - r=jgilbert
authorGuillaume Abadie <gabadie@mozilla.com>
Fri, 16 Aug 2013 17:11:57 -0400
changeset 156761 70848736309bbeebea31eac92428ed5724923e2d
parent 156760 f08e4a699011c5d2e6402c7e6caea33c54e44f40
child 156762 77bcbb164b455598c203a6805eec85ffe92b37c0
push idunknown
push userunknown
push dateunknown
reviewersjgilbert
bugs905853
milestone26.0a1
bug 905853 - gfx/gl/GLConsts.h nits fix - r=jgilbert
gfx/gl/GLConsts.h
gfx/gl/GLParseRegistryXML.py
--- a/gfx/gl/GLConsts.h
+++ b/gfx/gl/GLConsts.h
@@ -1,19 +1,19 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#if !defined(GLCONSTS_H_)
+#ifndef GLCONSTS_H_
 #define GLCONSTS_H_
 
 /**
  * GENERATED FILE, DO NOT MODIFY DIRECTLY.
- * THIS IS A GENERATED FILE DIRECTLY FROM THE OFFCIAL OPENGL REGISTRY
- * XML AVAILABLE AT http://www.opengl.org/registry/#specfiles.
+ * This is a file generated directly from the official OpenGL registry
+ * xml available http://www.opengl.org/registry/#specfiles.
  *
  * To generate this file, see tutorial in GLParseRegistry.py
  */
 
 // GL
 #define LOCAL_GL_1PASS_EXT                                   0x80A1
 #define LOCAL_GL_1PASS_SGIS                                  0x80A1
 #define LOCAL_GL_2D                                          0x0600
@@ -171,27 +171,27 @@
 #define LOCAL_GL_ASYNC_READ_PIXELS_SGIX                      0x835E
 #define LOCAL_GL_ASYNC_TEX_IMAGE_SGIX                        0x835C
 #define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                 0x8C93
 #define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD             0x87EE
 #define LOCAL_GL_ATC_RGB_AMD                                 0x8C92
 #define LOCAL_GL_ATOMIC_COUNTER_BARRIER_BIT                  0x00001000
 #define LOCAL_GL_ATOMIC_COUNTER_BARRIER_BIT_EXT              0x00001000
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER                       0x92C0
-#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
+#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS        0x92C5
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_BINDING               0x92C1
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE             0x92C4
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_INDEX                 0x9301
-#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
+#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER  0x90ED
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
-#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
-#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
-#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
+#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER     0x92C8
+#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER  0x92C9
+#define LOCAL_GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER   0x92C7
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_SIZE                  0x92C3
 #define LOCAL_GL_ATOMIC_COUNTER_BUFFER_START                 0x92C2
 #define LOCAL_GL_ATTACHED_SHADERS                            0x8B85
 #define LOCAL_GL_ATTENUATION_EXT                             0x834D
 #define LOCAL_GL_ATTRIB_ARRAY_POINTER_NV                     0x8645
 #define LOCAL_GL_ATTRIB_ARRAY_SIZE_NV                        0x8623
 #define LOCAL_GL_ATTRIB_ARRAY_STRIDE_NV                      0x8624
 #define LOCAL_GL_ATTRIB_ARRAY_TYPE_NV                        0x8625
@@ -576,17 +576,17 @@
 #define LOCAL_GL_COMPRESSED_RED_RGTC1_EXT                    0x8DBB
 #define LOCAL_GL_COMPRESSED_RG                               0x8226
 #define LOCAL_GL_COMPRESSED_RG11_EAC                         0x9272
 #define LOCAL_GL_COMPRESSED_RG11_EAC_OES                     0x9272
 #define LOCAL_GL_COMPRESSED_RGB                              0x84ED
 #define LOCAL_GL_COMPRESSED_RGB8_ETC2                        0x9274
 #define LOCAL_GL_COMPRESSED_RGB8_ETC2_OES                    0x9274
 #define LOCAL_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2    0x9276
-#define LOCAL_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2_OES 0x9276
+#define LOCAL_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2_OES        0x9276
 #define LOCAL_GL_COMPRESSED_RGBA                             0x84EE
 #define LOCAL_GL_COMPRESSED_RGBA8_ETC2_EAC                   0x9278
 #define LOCAL_GL_COMPRESSED_RGBA8_ETC2_EAC_OES               0x9278
 #define LOCAL_GL_COMPRESSED_RGBA_ARB                         0x84EE
 #define LOCAL_GL_COMPRESSED_RGBA_ASTC_10x10_KHR              0x93BB
 #define LOCAL_GL_COMPRESSED_RGBA_ASTC_10x5_KHR               0x93B8
 #define LOCAL_GL_COMPRESSED_RGBA_ASTC_10x6_KHR               0x93B9
 #define LOCAL_GL_COMPRESSED_RGBA_ASTC_10x8_KHR               0x93BA
@@ -648,17 +648,17 @@
 #define LOCAL_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR        0x93D5
 #define LOCAL_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR        0x93D6
 #define LOCAL_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR        0x93D7
 #define LOCAL_GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC            0x9279
 #define LOCAL_GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC_OES        0x9279
 #define LOCAL_GL_COMPRESSED_SRGB8_ETC2                       0x9275
 #define LOCAL_GL_COMPRESSED_SRGB8_ETC2_OES                   0x9275
 #define LOCAL_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2   0x9277
-#define LOCAL_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2_OES 0x9277
+#define LOCAL_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2_OES       0x9277
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA                       0x8C49
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB        0x8E8D
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_EXT                   0x8C49
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT         0x8C4D
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV          0x8C4D
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT         0x8C4E
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV          0x8C4E
 #define LOCAL_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT         0x8C4F
@@ -1432,26 +1432,26 @@
 #define LOCAL_GL_FRAGMENT_LIGHT3_SGIX                        0x840F
 #define LOCAL_GL_FRAGMENT_LIGHT4_SGIX                        0x8410
 #define LOCAL_GL_FRAGMENT_LIGHT5_SGIX                        0x8411
 #define LOCAL_GL_FRAGMENT_LIGHT6_SGIX                        0x8412
 #define LOCAL_GL_FRAGMENT_LIGHT7_SGIX                        0x8413
 #define LOCAL_GL_FRAGMENT_LIGHTING_SGIX                      0x8400
 #define LOCAL_GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX           0x840A
 #define LOCAL_GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX      0x8408
-#define LOCAL_GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
+#define LOCAL_GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX      0x840B
 #define LOCAL_GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX          0x8409
 #define LOCAL_GL_FRAGMENT_MATERIAL_EXT                       0x8349
 #define LOCAL_GL_FRAGMENT_NORMAL_EXT                         0x834A
 #define LOCAL_GL_FRAGMENT_PROGRAM_ARB                        0x8804
 #define LOCAL_GL_FRAGMENT_PROGRAM_BINDING_NV                 0x8873
 #define LOCAL_GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA         0x8BB3
 #define LOCAL_GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA         0x8BB2
 #define LOCAL_GL_FRAGMENT_PROGRAM_CALLBACK_MESA              0x8BB1
-#define LOCAL_GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D
+#define LOCAL_GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV       0x8E5D
 #define LOCAL_GL_FRAGMENT_PROGRAM_NV                         0x8870
 #define LOCAL_GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV        0x8DA4
 #define LOCAL_GL_FRAGMENT_PROGRAM_POSITION_MESA              0x8BB0
 #define LOCAL_GL_FRAGMENT_SHADER                             0x8B30
 #define LOCAL_GL_FRAGMENT_SHADER_ARB                         0x8B30
 #define LOCAL_GL_FRAGMENT_SHADER_ATI                         0x8920
 #define LOCAL_GL_FRAGMENT_SHADER_BIT                         0x00000002
 #define LOCAL_GL_FRAGMENT_SHADER_BIT_EXT                     0x00000002
@@ -1478,21 +1478,21 @@
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME          0x8CD1
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT      0x8CD1
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES      0x8CD1
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE          0x8CD0
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT      0x8CD0
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES      0x8CD0
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE             0x8212
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE         0x8217
-#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
-#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
-#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
-#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
-#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3
+#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT       0x8CD4
+#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES       0x8CD4
+#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE        0x8CD3
+#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT    0x8CD3
+#define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES    0x8CD3
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER        0x8CD4
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT    0x8CD4
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL        0x8CD2
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT    0x8CD2
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES    0x8CD2
 #define LOCAL_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT  0x8D6C
 #define LOCAL_GL_FRAMEBUFFER_BARRIER_BIT                     0x00000400
 #define LOCAL_GL_FRAMEBUFFER_BARRIER_BIT_EXT                 0x00000400
@@ -1523,18 +1523,18 @@
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT          0x8CDA
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES          0x8CDA
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB      0x8DA9
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT      0x8DA9
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS        0x8DA8
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB    0x8DA8
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT    0x8DA8
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT   0x8CD7
-#define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
-#define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7
+#define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT       0x8CD7
+#define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES       0x8CD7
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE          0x8D56
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE    0x8D56
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE    0x8D56
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT      0x8D56
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG      0x9134
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV       0x8D56
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER          0x8CDC
 #define LOCAL_GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT      0x8CDC
@@ -2248,22 +2248,22 @@
 #define LOCAL_GL_MAX_COLOR_TEXTURE_SAMPLES                   0x910E
 #define LOCAL_GL_MAX_COMBINED_ATOMIC_COUNTERS                0x92D7
 #define LOCAL_GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS         0x92D1
 #define LOCAL_GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS     0x8266
 #define LOCAL_GL_MAX_COMBINED_DIMENSIONS                     0x8282
 #define LOCAL_GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS    0x8A33
 #define LOCAL_GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS    0x8A32
 #define LOCAL_GL_MAX_COMBINED_IMAGE_UNIFORMS                 0x90CF
-#define LOCAL_GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
-#define LOCAL_GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39
+#define LOCAL_GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS       0x8F39
+#define LOCAL_GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT   0x8F39
 #define LOCAL_GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES        0x8F39
 #define LOCAL_GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS          0x90DC
-#define LOCAL_GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
-#define LOCAL_GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
+#define LOCAL_GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS        0x8E1E
+#define LOCAL_GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS     0x8E1F
 #define LOCAL_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS            0x8B4D
 #define LOCAL_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB        0x8B4D
 #define LOCAL_GL_MAX_COMBINED_UNIFORM_BLOCKS                 0x8A2E
 #define LOCAL_GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS      0x8A31
 #define LOCAL_GL_MAX_COMPUTE_ATOMIC_COUNTERS                 0x8265
 #define LOCAL_GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS          0x8264
 #define LOCAL_GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB     0x90EB
 #define LOCAL_GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB            0x91BF
@@ -2374,20 +2374,20 @@
 #define LOCAL_GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB          0x8841
 #define LOCAL_GL_MAX_MODELVIEW_STACK_DEPTH                   0x0D36
 #define LOCAL_GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV           0x8E11
 #define LOCAL_GL_MAX_MULTIVIEW_BUFFERS_EXT                   0x90F2
 #define LOCAL_GL_MAX_NAME_LENGTH                             0x92F6
 #define LOCAL_GL_MAX_NAME_STACK_DEPTH                        0x0D37
 #define LOCAL_GL_MAX_NUM_ACTIVE_VARIABLES                    0x92F7
 #define LOCAL_GL_MAX_NUM_COMPATIBLE_SUBROUTINES              0x92F8
-#define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA
+#define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT        0x87CA
 #define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT  0x87CD
 #define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT      0x87CE
-#define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC
+#define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT     0x87CC
 #define LOCAL_GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT    0x87CB
 #define LOCAL_GL_MAX_PALETTE_MATRICES_ARB                    0x8842
 #define LOCAL_GL_MAX_PALETTE_MATRICES_OES                    0x8842
 #define LOCAL_GL_MAX_PATCH_VERTICES                          0x8E7D
 #define LOCAL_GL_MAX_PIXEL_MAP_TABLE                         0x0D34
 #define LOCAL_GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT      0x8337
 #define LOCAL_GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI      0x87F1
 #define LOCAL_GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB           0x88B1
@@ -2499,25 +2499,25 @@
 #define LOCAL_GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT              0x84FF
 #define LOCAL_GL_MAX_TEXTURE_SIZE                            0x0D33
 #define LOCAL_GL_MAX_TEXTURE_STACK_DEPTH                     0x0D39
 #define LOCAL_GL_MAX_TEXTURE_UNITS                           0x84E2
 #define LOCAL_GL_MAX_TEXTURE_UNITS_ARB                       0x84E2
 #define LOCAL_GL_MAX_TRACK_MATRICES_NV                       0x862F
 #define LOCAL_GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV             0x862E
 #define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_BUFFERS              0x8E70
-#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
-#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
-#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A
+#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS       0x8C8A
+#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT   0x8C8A
+#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV    0x8C8A
 #define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS     0x8C8B
 #define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
 #define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV  0x8C8B
 #define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS  0x8C80
-#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80
-#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80
+#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT      0x8C80
+#define LOCAL_GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV       0x8C80
 #define LOCAL_GL_MAX_UNIFORM_BLOCK_SIZE                      0x8A30
 #define LOCAL_GL_MAX_UNIFORM_BUFFER_BINDINGS                 0x8A2F
 #define LOCAL_GL_MAX_UNIFORM_LOCATIONS                       0x826E
 #define LOCAL_GL_MAX_VARYING_COMPONENTS                      0x8B4B
 #define LOCAL_GL_MAX_VARYING_COMPONENTS_EXT                  0x8B4B
 #define LOCAL_GL_MAX_VARYING_FLOATS                          0x8B4B
 #define LOCAL_GL_MAX_VARYING_FLOATS_ARB                      0x8B4B
 #define LOCAL_GL_MAX_VARYING_VECTORS                         0x8DFC
@@ -2774,17 +2774,17 @@
 #define LOCAL_GL_OFFSET                                      0x92FC
 #define LOCAL_GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV        0x8856
 #define LOCAL_GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
 #define LOCAL_GL_OFFSET_HILO_TEXTURE_2D_NV                   0x8854
 #define LOCAL_GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV            0x8855
 #define LOCAL_GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV             0x8850
 #define LOCAL_GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV       0x8851
 #define LOCAL_GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV      0x8852
-#define LOCAL_GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
+#define LOCAL_GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV        0x8853
 #define LOCAL_GL_OFFSET_TEXTURE_2D_BIAS_NV                   0x86E3
 #define LOCAL_GL_OFFSET_TEXTURE_2D_MATRIX_NV                 0x86E1
 #define LOCAL_GL_OFFSET_TEXTURE_2D_NV                        0x86E8
 #define LOCAL_GL_OFFSET_TEXTURE_2D_SCALE_NV                  0x86E2
 #define LOCAL_GL_OFFSET_TEXTURE_BIAS_NV                      0x86E3
 #define LOCAL_GL_OFFSET_TEXTURE_MATRIX_NV                    0x86E1
 #define LOCAL_GL_OFFSET_TEXTURE_RECTANGLE_NV                 0x864C
 #define LOCAL_GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV           0x864D
@@ -3271,17 +3271,17 @@
 #define LOCAL_GL_PROXY_TEXTURE_RECTANGLE_ARB                 0x84F7
 #define LOCAL_GL_PROXY_TEXTURE_RECTANGLE_NV                  0x84F7
 #define LOCAL_GL_PURGEABLE_APPLE                             0x8A1D
 #define LOCAL_GL_Q                                           0x2003
 #define LOCAL_GL_QUADRATIC_ATTENUATION                       0x1209
 #define LOCAL_GL_QUADRATIC_CURVE_TO_NV                       0x0A
 #define LOCAL_GL_QUADS                                       0x0007
 #define LOCAL_GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION    0x8E4C
-#define LOCAL_GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
+#define LOCAL_GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT        0x8E4C
 #define LOCAL_GL_QUAD_ALPHA4_SGIS                            0x811E
 #define LOCAL_GL_QUAD_ALPHA8_SGIS                            0x811F
 #define LOCAL_GL_QUAD_INTENSITY4_SGIS                        0x8122
 #define LOCAL_GL_QUAD_INTENSITY8_SGIS                        0x8123
 #define LOCAL_GL_QUAD_LUMINANCE4_SGIS                        0x8120
 #define LOCAL_GL_QUAD_LUMINANCE8_SGIS                        0x8121
 #define LOCAL_GL_QUAD_MESH_SUN                               0x8614
 #define LOCAL_GL_QUAD_STRIP                                  0x0008
@@ -4579,18 +4579,18 @@
 #define LOCAL_GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES        0x8A43
 #define LOCAL_GL_UNIFORM_BLOCK_BINDING                       0x8A3F
 #define LOCAL_GL_UNIFORM_BLOCK_DATA_SIZE                     0x8A40
 #define LOCAL_GL_UNIFORM_BLOCK_INDEX                         0x8A3A
 #define LOCAL_GL_UNIFORM_BLOCK_NAME_LENGTH                   0x8A41
 #define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER  0x90EC
 #define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
 #define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
-#define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
-#define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
+#define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER     0x84F0
+#define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER  0x84F1
 #define LOCAL_GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER   0x8A44
 #define LOCAL_GL_UNIFORM_BUFFER                              0x8A11
 #define LOCAL_GL_UNIFORM_BUFFER_BINDING                      0x8A28
 #define LOCAL_GL_UNIFORM_BUFFER_BINDING_EXT                  0x8DEF
 #define LOCAL_GL_UNIFORM_BUFFER_EXT                          0x8DEE
 #define LOCAL_GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT             0x8A34
 #define LOCAL_GL_UNIFORM_BUFFER_SIZE                         0x8A2A
 #define LOCAL_GL_UNIFORM_BUFFER_START                        0x8A29
@@ -5084,23 +5084,23 @@
 #define LOCAL_EGL_CONSUMER_FRAME_KHR                         0x3213
 #define LOCAL_EGL_CONSUMER_LATENCY_USEC_KHR                  0x3210
 #define LOCAL_EGL_CONTEXT_CLIENT_TYPE                        0x3097
 #define LOCAL_EGL_CONTEXT_CLIENT_VERSION                     0x3098
 #define LOCAL_EGL_CONTEXT_FLAGS_KHR                          0x30FC
 #define LOCAL_EGL_CONTEXT_LOST                               0x300E
 #define LOCAL_EGL_CONTEXT_MAJOR_VERSION_KHR                  0x3098
 #define LOCAL_EGL_CONTEXT_MINOR_VERSION_KHR                  0x30FB
-#define LOCAL_EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
+#define LOCAL_EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR       0x00000002
 #define LOCAL_EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR        0x00000001
 #define LOCAL_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR               0x00000001
 #define LOCAL_EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR  0x00000002
 #define LOCAL_EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR            0x30FD
-#define LOCAL_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
-#define LOCAL_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
+#define LOCAL_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT     0x3138
+#define LOCAL_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR     0x31BD
 #define LOCAL_EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR       0x00000004
 #define LOCAL_EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT           0x30BF
 #define LOCAL_EGL_CONTEXT_PRIORITY_HIGH_IMG                  0x3101
 #define LOCAL_EGL_CONTEXT_PRIORITY_LEVEL_IMG                 0x3100
 #define LOCAL_EGL_CONTEXT_PRIORITY_LOW_IMG                   0x3103
 #define LOCAL_EGL_CONTEXT_PRIORITY_MEDIUM_IMG                0x3102
 #define LOCAL_EGL_CORE_NATIVE_ENGINE                         0x305B
 #define LOCAL_EGL_COVERAGE_BUFFERS_NV                        0x30E0
@@ -5372,17 +5372,17 @@
 #define LOCAL_GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK            0x04000000
 #define LOCAL_GLX_BufferSwapComplete                         1
 #define LOCAL_GLX_COLOR_INDEX_BIT                            0x00000002
 #define LOCAL_GLX_COLOR_INDEX_BIT_SGIX                       0x00000002
 #define LOCAL_GLX_COLOR_INDEX_TYPE                           0x8015
 #define LOCAL_GLX_COLOR_INDEX_TYPE_SGIX                      0x8015
 #define LOCAL_GLX_COLOR_SAMPLES_NV                           0x20B3
 #define LOCAL_GLX_CONFIG_CAVEAT                              0x20
-#define LOCAL_GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
+#define LOCAL_GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB       0x2095
 #define LOCAL_GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB      0x00000002
 #define LOCAL_GLX_CONTEXT_CORE_PROFILE_BIT_ARB               0x00000001
 #define LOCAL_GLX_CONTEXT_DEBUG_BIT_ARB                      0x00000001
 #define LOCAL_GLX_CONTEXT_ES2_PROFILE_BIT_EXT                0x00000004
 #define LOCAL_GLX_CONTEXT_ES_PROFILE_BIT_EXT                 0x00000004
 #define LOCAL_GLX_CONTEXT_FLAGS_ARB                          0x2094
 #define LOCAL_GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB         0x00000002
 #define LOCAL_GLX_CONTEXT_MAJOR_VERSION_ARB                  0x2091
--- a/gfx/gl/GLParseRegistryXML.py
+++ b/gfx/gl/GLParseRegistryXML.py
@@ -45,23 +45,23 @@ class GLConstHeader:
 
 
     def formatFileBegin(self):
         self.write([
                     '/* This Source Code Form is subject to the terms of the Mozilla Public',
                     ' * License, v. 2.0. If a copy of the MPL was not distributed with this',
                     ' * file, You can obtain one at http://mozilla.org/MPL/2.0/. */',
                     '',
-                    '#if !defined(GLCONSTS_H_)',
+                    '#ifndef GLCONSTS_H_',
                     '#define GLCONSTS_H_',
                     '',
                     '/**',
                     ' * GENERATED FILE, DO NOT MODIFY DIRECTLY.',
-                    ' * THIS IS A GENERATED FILE DIRECTLY FROM THE OFFCIAL OPENGL REGISTRY',
-                    ' * XML AVAILABLE AT http://www.opengl.org/registry/#specfiles.',
+                    ' * This is a file generated directly from the official OpenGL registry',
+                    ' * xml available http://www.opengl.org/registry/#specfiles.',
                     ' *',
                     ' * To generate this file, see tutorial in GLParseRegistry.py',
                     ' */',
                     ''
                    ])
 
 
     def formatLibBegin(self, lib):
@@ -70,17 +70,21 @@ class GLConstHeader:
 
 
     def formatLibConstant(self, lib, name, value):
         # lib would be 'GL', 'EGL', 'GLX' or 'WGL'
         # name is the name of the const (example: MAX_TEXTURE_SIZE)
         # value is the value of the const (example: 0xABCD)
 
         define = '#define LOCAL_' + lib + '_' + name
-        whitespace = max(60 - len(define), 0)
+        whitespace = 60 - len(define)
+        
+        if whitespace < 0:
+            whitespace = whitespace % 8
+        
         self.write(define + ' ' * whitespace + ' ' + value)
 
 
     def formatLibEnd(self, lib):
         # lib would be 'GL', 'EGL', 'GLX' or 'WGL'
         self.write(2)