glsl: Address Rodrigo's feedback

This commit is contained in:
ameerj 2021-06-11 00:33:33 -04:00
parent 85399e119d
commit 4759db28d0
13 changed files with 87 additions and 75 deletions

View file

@ -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)...);
}