summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2021-02-14 01:12:30 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2021-02-14 01:12:30 +0200
commitbe14f065d1c7f42f96516c7cc1345243f4c51b43 (patch)
tree307d30880f0f703a75e08f7b007a64c7be5f6460
parent7128f09a5d9f00b7f8326c7f6bc540309da3e8b6 (diff)
Fix uninitialized `BaseMaterial3D::features` variable.
-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];