summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-14 10:46:27 +0100
committerGitHub <noreply@github.com>2021-02-14 10:46:27 +0100
commitdb9ad80b63201a83663d1324acfc611b9277ecc2 (patch)
tree8a145efc3f76ff160756d6d8cd5554e212cdb540 /scene
parent2b95372ad1470e374112c5424848eea501465b86 (diff)
parentbe14f065d1c7f42f96516c7cc1345243f4c51b43 (diff)
Merge pull request #45987 from bruvzg/fix_uninit_material_features
Fix uninitialized `BaseMaterial3D::features` variable.
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/material.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.h b/scene/resources/material.h
index 595db36a57..70452a5f74 100644
--- a/scene/resources/material.h
+++ b/scene/resources/material.h
@@ -519,7 +519,7 @@ private:
AlphaAntiAliasing alpha_antialiasing_mode = ALPHA_ANTIALIASING_OFF;
- bool features[FEATURE_MAX];
+ bool features[FEATURE_MAX] = {};
Ref<Texture2D> textures[TEXTURE_MAX];