Commit ff5abf34 by John Kessenich

Clear up a C++ compile warning

parent e0603a44
...@@ -43,6 +43,8 @@ class TConstUnion { ...@@ -43,6 +43,8 @@ class TConstUnion {
public: public:
POOL_ALLOCATOR_NEW_DELETE(GetThreadPoolAllocator()) POOL_ALLOCATOR_NEW_DELETE(GetThreadPoolAllocator())
TConstUnion() : iConst(0), type(EbtInt) { }
void setIConst(int i) void setIConst(int i)
{ {
iConst = i; iConst = i;
...@@ -398,7 +400,7 @@ private: ...@@ -398,7 +400,7 @@ private:
unsigned int uConst; // used for uvec, scalar uints unsigned int uConst; // used for uvec, scalar uints
bool bConst; // used for bvec, scalar bools bool bConst; // used for bvec, scalar bools
double dConst; // used for vec, dvec, mat, dmat, scalar floats and doubles double dConst; // used for vec, dvec, mat, dmat, scalar floats and doubles
} ; };
TBasicType type; TBasicType type;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment