[Vulkan] Fix shader crash if using multiple underscores in identifier names

This commit is contained in:
Yuri Roubinsky 2020-01-31 10:42:39 +03:00
parent 2049dec79e
commit 21e3cc7bb8

View File

@ -170,7 +170,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
}