mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
Prevent crash due to assigning incorrect order of instance uniform
This commit is contained in:
parent
98ccaa1bad
commit
289cc89a39
1 changed files with 3 additions and 1 deletions
|
|
@ -6305,8 +6305,10 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct
|
||||||
}
|
}
|
||||||
|
|
||||||
uniform2.texture_order = -1;
|
uniform2.texture_order = -1;
|
||||||
|
if (uniform_scope != ShaderNode::Uniform::SCOPE_INSTANCE) {
|
||||||
uniform2.order = uniforms++;
|
uniform2.order = uniforms++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
uniform2.type = type;
|
uniform2.type = type;
|
||||||
uniform2.scope = uniform_scope;
|
uniform2.scope = uniform_scope;
|
||||||
uniform2.precision = precision;
|
uniform2.precision = precision;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue