mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 11:03:55 +01:00
Only pass positive values to sqrt and log2 in the fragment program. (#2624)
This commit is contained in:
1 parent
215a9f9e11
commit
ce7d62968e
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user