Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix uninitialized memory in ShaderLanguage::FunctionNode::Argument

Aaron Franke3020b362f4b3
diff --git a/servers/rendering/shader_language.h b/servers/rendering/shader_language.h
index 7165e2d2540..311856f26cc 100644
--- a/servers/rendering/shader_language.h
+++ b/servers/rendering/shader_language.h
@@ -749,14 +749,14 @@ public:
StringName struct_name;
DataPrecision precision;
//for passing textures as arguments
- bool tex_argument_check;
+ bool tex_argument_check = false;
TextureFilter tex_argument_filter;
TextureRepeat tex_argument_repeat;
- bool tex_builtin_check;
+ bool tex_builtin_check = false;
StringName tex_builtin;
- ShaderNode::Uniform::Hint tex_hint;
- bool is_const;
- int array_size;
+ ShaderNode::Uniform::Hint tex_hint = ShaderNode::Uniform::HINT_NONE;
+ bool is_const = false;
+ int array_size = 0;
HashMap<StringName, HashSet<int>> tex_argument_connect;
};