Merge pull request #35818 from Chaosus/fix_shader_crash

Prevent shader crash when name conflict with "dus" and "__" occured
This commit is contained in:
Yuri Roubinsky 2020-02-01 13:14:59 +03:00 committed by GitHub
commit f26e2f65cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,6 +662,8 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
idx++;
}
str = str.replace("dus_", "_");
return _make_token(TK_IDENTIFIER, str);
}