diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-30 23:28:35 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-12-01 11:52:25 +0300 |
commit | 5ba93619fae4eedca092bd7e4551b9034d725ff4 (patch) | |
tree | 3ef72ca65c8d243298a681d5be5eb3d99ff15e63 /drivers/gles3 | |
parent | e223a9c12905b99bb1fe93a56ae634b34eadd359 (diff) |
Allow using empty statements in the shader, added formatting warning
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/shader_compiler_gles3.cpp | 4 |
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 += "("; |