glsl: Address Rodrigo's feedback
This commit is contained in:
parent
85399e119d
commit
4759db28d0
13 changed files with 87 additions and 75 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
const auto var_def{var_alloc.AddDefine(inst, type)};
|
||||
if (var_def.empty()) {
|
||||
// skip assigment.
|
||||
code += fmt::format(&format_str[3], std::forward<Args>(args)...);
|
||||
code += fmt::format(format_str + 3, std::forward<Args>(args)...);
|
||||
} else {
|
||||
code += fmt::format(format_str, var_def, std::forward<Args>(args)...);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue