Add missing initialisation of counterIndex and stages in badReflection()
authorbaldurk <baldurk@baldurk.org>
Tue, 29 Jan 2019 12:49:14 +0000 (12:49 +0000)
committerbaldurk <baldurk@baldurk.org>
Tue, 29 Jan 2019 14:10:04 +0000 (14:10 +0000)
glslang/MachineIndependent/reflection.h

index 49282c3..d68f8b3 100644 (file)
@@ -87,7 +87,8 @@ public:
     EShLanguageMask stages;
 
 protected:
-    TObjectReflection() : offset(-1), glDefineType(-1), size(-1), index(-1), type(nullptr) { }
+    TObjectReflection() :
+        offset(-1), glDefineType(-1), size(-1), index(-1), counterIndex(-1), stages(EShLanguageMask(0)), type(nullptr) { }
 
     const TType* type;
 };