Merge pull request #55490 from Chaosus/fix_shader_crash

This commit is contained in:
Rémi Verschelde 2021-11-30 20:13:12 +01:00 committed by GitHub
commit 5643f5e616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8453,7 +8453,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct
constant.initializer = static_cast<ConstantNode *>(expr);
if (!_compare_datatypes(type, struct_name, 0, expr->get_datatype(), expr->get_datatype_name(), 0)) {
if (!_compare_datatypes(type, struct_name, 0, expr->get_datatype(), expr->get_datatype_name(), expr->get_array_size())) {
return ERR_PARSE_ERROR;
}
}