summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-11-30 23:28:35 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-12-01 11:52:25 +0300
commit5ba93619fae4eedca092bd7e4551b9034d725ff4 (patch)
tree3ef72ca65c8d243298a681d5be5eb3d99ff15e63 /drivers/gles3
parente223a9c12905b99bb1fe93a56ae634b34eadd359 (diff)
Allow using empty statements in the shader, added formatting warning
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shader_compiler_gles3.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles3/shader_compiler_gles3.cpp b/drivers/gles3/shader_compiler_gles3.cpp
index f9443e11db..168080f2f1 100644
--- a/drivers/gles3/shader_compiler_gles3.cpp
+++ b/drivers/gles3/shader_compiler_gles3.cpp
@@ -758,6 +758,10 @@ String ShaderCompilerGLES3::_dump_node_code(SL::Node *p_node, int p_level, Gener
code += a + " - " + n + " * (" + a + " / " + n + "))";
} break;
+ case SL::OP_EMPTY: {
+ // Semicolon (or empty statement) - ignored.
+ } break;
+
default: {
if (p_use_scope) {
code += "(";