diff --git a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp index 544b1dc7a8..5501217e58 100644 --- a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp @@ -173,7 +173,7 @@ std::string FragmentProgramDecompiler::NotZero(const std::string& code) std::string FragmentProgramDecompiler::NotZeroPositive(const std::string& code) { - return "max(" + code + ", 1.E-10)"; + return "max(abs(" + code + "), 1.E-10)"; } std::string FragmentProgramDecompiler::NoOverflow(const std::string& code)