diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-11 06:33:33 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:38 +0200 |
commit | 4759db28d0b98c79f9a630b63ba13c4cd0df9109 (patch) | |
tree | 3cc20c600bf0733f464e3c844688b1cef766e191 /src/shader_recompiler/backend/glsl/emit_context.h | |
parent | glsl: Reorganize backend code, remove unneeded [[maybe_unused]] (diff) | |
download | yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.gz yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.bz2 yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.lz yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.xz yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.tar.zst yuzu-4759db28d0b98c79f9a630b63ba13c4cd0df9109.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.h')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h index 2b0d22ce5..0d18abe90 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.h +++ b/src/shader_recompiler/backend/glsl/emit_context.h @@ -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)...); } |