diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-23 05:31:30 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | cdde7302196d6642724d36e8ed5a523dce702b6b (patch) | |
tree | 2700fc87a4762486b84cc73d783542d97bb6a96a /src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp | |
parent | glsl: More FP fixes (diff) | |
download | yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.tar yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.tar.gz yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.tar.bz2 yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.tar.lz yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.tar.xz yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.tar.zst yuzu-cdde7302196d6642724d36e8ed5a523dce702b6b.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp index 19a3c236d..e8c828e7c 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp @@ -101,12 +101,12 @@ void EmitFPNeg16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& i void EmitFPNeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, [[maybe_unused]] std::string_view value) { - ctx.AddF32("{}=-{};", inst, value); + ctx.AddF32("{}=-({});", inst, value); } void EmitFPNeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, [[maybe_unused]] std::string_view value) { - ctx.AddF64("{}=-{};", inst, value); + ctx.AddF64("{}=-({});", inst, value); } void EmitFPSin([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |