Fix shader crash if using multiple underscores in identifier names
(cherry picked from commit 15358b808b
)
This commit is contained in:
parent
04cfcb3ba0
commit
786b1cc7ff
|
@ -80,7 +80,7 @@ static String _opstr(SL::Operator p_op) {
|
|||
|
||||
static String _mkid(const String &p_id) {
|
||||
|
||||
String id = "m_" + p_id;
|
||||
String id = "m_" + p_id.replace("__", "_dus_");
|
||||
return id.replace("__", "_dus_"); //doubleunderscore is reserved in glsl
|
||||
}
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ static String _opstr(SL::Operator p_op) {
|
|||
|
||||
static String _mkid(const String &p_id) {
|
||||
|
||||
String id = "m_" + p_id;
|
||||
String id = "m_" + p_id.replace("__", "_dus_");
|
||||
return id.replace("__", "_dus_"); //doubleunderscore is reserved in glsl
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue