summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-01-31 09:11:17 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-01-31 09:11:17 +0300
commit15358b808be0cf6ab20ff2d2e23b82fa9a2cf30d (patch)
tree35855eff71a9ec8c49d7a748ed441570c824f42f /drivers/gles3
parent4e7d75ccd350b98bccea517c034b367f52cf127e (diff)
Fix shader crash if using multiple underscores in identifier names
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shader_compiler_gles3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shader_compiler_gles3.cpp b/drivers/gles3/shader_compiler_gles3.cpp
index f43943bdff..4e4d896bd7 100644
--- a/drivers/gles3/shader_compiler_gles3.cpp
+++ b/drivers/gles3/shader_compiler_gles3.cpp
@@ -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
}