Reorder fields to avoid compiler initialization order error.
authorLei Zhang <antiagainst@google.com>
Fri, 15 Jul 2016 15:25:28 +0000 (11:25 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 15 Jul 2016 15:25:28 +0000 (11:25 -0400)
glslang/Include/Types.h

index 59bbe9f..f3ea895 100644 (file)
@@ -1717,13 +1717,13 @@ protected:
                                // functionality is added.
                                // HLSL does have a 1-component vectors, so this will be true to disambiguate
                                // from a scalar.
-    TSampler sampler;
     TQualifier qualifier;
 
     TArraySizes* arraySizes;    // nullptr unless an array; can be shared across types
     TTypeList* structure;       // nullptr unless this is a struct; can be shared across types
     TString *fieldName;         // for structure field names
     TString *typeName;          // for structure type name
+    TSampler sampler;
 };
 
 } // end namespace glslang