Commit 9a4c8c46 by Geoff Lang

Initialize all members in the default TType constructor.

This is an attempt to fix use-of-uninitialized-value errors. Example failure: https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_msan_rel_ng/builds/68/steps/cc_unittests%20%28with%20patch%29/logs/EnlargedTextureWithAlphaThresholdFilter.GL BUG=angleproject:1044 Change-Id: I5906c67a55da553e2e5fd15320a5dd4186644e87 Reviewed-on: https://chromium-review.googlesource.com/287191Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 8518e7f6
...@@ -230,6 +230,10 @@ class TType ...@@ -230,6 +230,10 @@ class TType
public: public:
POOL_ALLOCATOR_NEW_DELETE(); POOL_ALLOCATOR_NEW_DELETE();
TType() TType()
: type(EbtVoid), precision(EbpUndefined), qualifier(EvqGlobal), invariant(false),
layoutQualifier(TLayoutQualifier::create()),
primarySize(0), secondarySize(0), array(false), arraySize(0),
interfaceBlock(nullptr), structure(nullptr)
{ {
} }
TType(TBasicType t, unsigned char ps = 1, unsigned char ss = 1) TType(TBasicType t, unsigned char ps = 1, unsigned char ss = 1)
......
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