From 81c25a5810aeda5d42f5eb5d917b9795e6d86cf1 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 2bfa8be66803..7a9f57d202cb 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