From b1165f49d5b420d3e45efc320dbb4f5c43a6da74 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 15 Jul 2016 11:25:28 -0400 Subject: [PATCH] Reorder fields to avoid compiler initialization order error. --- glslang/Include/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/Include/Types.h b/glslang/Include/Types.h index 59bbe9f5..f3ea8950 100644 --- a/glslang/Include/Types.h +++ b/glslang/Include/Types.h @@ -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