mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Only pass positive values to sqrt and log2 in the fragment program. (#2624)
This commit is contained in:
parent
215a9f9e11
commit
ce7d62968e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user