mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #35818 from Chaosus/fix_shader_crash
Prevent shader crash when name conflict with "dus" and "__" occured
This commit is contained in:
commit
f26e2f65cd
@ -662,6 +662,8 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
|
||||
idx++;
|
||||
}
|
||||
|
||||
str = str.replace("dus_", "_");
|
||||
|
||||
return _make_token(TK_IDENTIFIER, str);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user