Skip to content

Commit

Permalink
Merge pull request #75366 from Chaosus/shader_compiler_fix_operator
Browse files Browse the repository at this point in the history
Fix to some operators in shaders are not compiled properly
  • Loading branch information
YuriSizov authored Apr 3, 2023
2 parents ba27db3 + 575e352 commit 9dcfdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/shader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
if (p_use_scope) {
code += "(";
}
code += _dump_node_code(onode->arguments[0], p_level, r_gen_code, p_actions, p_default_actions, p_assigning) + _opstr(onode->op) + _dump_node_code(onode->arguments[1], p_level, r_gen_code, p_actions, p_default_actions, p_assigning);
code += _dump_node_code(onode->arguments[0], p_level, r_gen_code, p_actions, p_default_actions, p_assigning) + " " + _opstr(onode->op) + " " + _dump_node_code(onode->arguments[1], p_level, r_gen_code, p_actions, p_default_actions, p_assigning);
if (p_use_scope) {
code += ")";
}
Expand Down

0 comments on commit 9dcfdc2

Please sign in to comment.