diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-01-31 09:11:17 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2020-01-31 09:11:17 +0300 |
commit | 15358b808be0cf6ab20ff2d2e23b82fa9a2cf30d (patch) | |
tree | 35855eff71a9ec8c49d7a748ed441570c824f42f /drivers/gles3 | |
parent | 4e7d75ccd350b98bccea517c034b367f52cf127e (diff) |
Fix shader crash if using multiple underscores in identifier names
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/shader_compiler_gles3.cpp | 2 |
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 } |