Prevent shader crash when name conflict with "dus" and "__" occured

(cherry picked from commit 2c4367441c)
This commit is contained in:
Yuri Roubinsky 2020-02-01 12:34:02 +03:00 committed by Rémi Verschelde
parent 72f7e4efe0
commit 0995696e08

View file

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