Avoid double underscore from breaking glsl compiler, fixes #12880
(cherry picked from commit f00b522705
)
This commit is contained in:
parent
701683e557
commit
7e1e73c719
|
@ -154,7 +154,8 @@ static String _opstr(SL::Operator p_op) {
|
|||
|
||||
static String _mkid(const String &p_id) {
|
||||
|
||||
return "m_" + p_id;
|
||||
String id = "m_" + p_id;
|
||||
return id.replace("__", "_dus_"); //doubleunderscore is reserverd in glsl
|
||||
}
|
||||
|
||||
static String f2sp0(float p_float) {
|
||||
|
|
Loading…
Reference in New Issue