From ff5abf34a8a84bb573d87063a10f82385b9eed18 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Mon, 6 Jul 2015 21:02:26 -0600 Subject: [PATCH] Clear up a C++ compile warning --- glslang/Include/ConstantUnion.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glslang/Include/ConstantUnion.h b/glslang/Include/ConstantUnion.h index 62b489df..702ee28d 100644 --- a/glslang/Include/ConstantUnion.h +++ b/glslang/Include/ConstantUnion.h @@ -43,6 +43,8 @@ class TConstUnion { public: POOL_ALLOCATOR_NEW_DELETE(GetThreadPoolAllocator()) + TConstUnion() : iConst(0), type(EbtInt) { } + void setIConst(int i) { iConst = i; @@ -398,7 +400,7 @@ private: unsigned int uConst; // used for uvec, scalar uints bool bConst; // used for bvec, scalar bools double dConst; // used for vec, dvec, mat, dmat, scalar floats and doubles - } ; + }; TBasicType type; };