diff options
author | Yuri Roubinski <chaosus89@gmail.com> | 2019-08-21 11:38:51 +0300 |
---|---|---|
committer | Yuri Roubinski <chaosus89@gmail.com> | 2020-02-11 12:00:10 +0100 |
commit | 47c0ef3308c1a7144f3cd145f178f2f7b8f5e24e (patch) | |
tree | 80ff2e8754fc7c2af7bf0bf7bd3afda27d661163 /servers/visual/rasterizer_rd/shader_compiler_rd.cpp | |
parent | 8cee7703a6673f9505332de1581055c821b756f0 (diff) |
[Vulkan] Fix ternary operator shader compiler expression
Diffstat (limited to 'servers/visual/rasterizer_rd/shader_compiler_rd.cpp')
-rw-r--r-- | servers/visual/rasterizer_rd/shader_compiler_rd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/rasterizer_rd/shader_compiler_rd.cpp b/servers/visual/rasterizer_rd/shader_compiler_rd.cpp index b43fabce59..1afbf60239 100644 --- a/servers/visual/rasterizer_rd/shader_compiler_rd.cpp +++ b/servers/visual/rasterizer_rd/shader_compiler_rd.cpp @@ -725,11 +725,13 @@ String ShaderCompilerRD::_dump_node_code(const SL::Node *p_node, int p_level, Ge } break; case SL::OP_SELECT_IF: { + code += "("; code += _dump_node_code(onode->arguments[0], p_level, r_gen_code, p_actions, p_default_actions, p_assigning); code += "?"; code += _dump_node_code(onode->arguments[1], p_level, r_gen_code, p_actions, p_default_actions, p_assigning); code += ":"; code += _dump_node_code(onode->arguments[2], p_level, r_gen_code, p_actions, p_default_actions, p_assigning); + code += ")"; } break; |