From 1d0c23a3f721ca52a2a01a560a8cf800cdb7db72 Mon Sep 17 00:00:00 2001 From: Powei Feng Date: Wed, 2 Oct 2024 13:45:05 -0700 Subject: [PATCH] Initialize bool in DescriptorSet.h (#8173) This class has a ( = default) constructor and hence should have explicit initialization in its definition. --- filament/src/ds/DescriptorSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filament/src/ds/DescriptorSet.h b/filament/src/ds/DescriptorSet.h index 2bfa8be6680..7a9f57d202c 100644 --- a/filament/src/ds/DescriptorSet.h +++ b/filament/src/ds/DescriptorSet.h @@ -103,7 +103,7 @@ class DescriptorSet { mutable utils::bitset64 mDirty; // 8 mutable utils::bitset64 mValid; // 8 backend::DescriptorSetHandle mDescriptorSetHandle; // 4 - mutable bool mSetAfterCommitWarning; // 1 + mutable bool mSetAfterCommitWarning = false; // 1 }; } // namespace filament