mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rsx: Workaround for nvidia linux
- For some reason, using 1.E-x notation does not work on nvidia linux. Could be a bug in spir-v generator or the driver itself
This commit is contained in:
parent
55c324e062
commit
1ea5e7404a
3 changed files with 4 additions and 4 deletions
|
|
@ -195,12 +195,12 @@ std::string FragmentProgramDecompiler::AddX2d()
|
|||
//Failure to catch causes infinite values since theres alot of rcp(0)
|
||||
std::string FragmentProgramDecompiler::NotZero(const std::string& code)
|
||||
{
|
||||
return "(max(abs(" + code + "), 1.E-10) * sign(" + code + "))";
|
||||
return "(max(abs(" + code + "), 0.000001) * sign(" + code + "))";
|
||||
}
|
||||
|
||||
std::string FragmentProgramDecompiler::NotZeroPositive(const std::string& code)
|
||||
{
|
||||
return "max(abs(" + code + "), 1.E-10)";
|
||||
return "max(abs(" + code + "), 0.000001)";
|
||||
}
|
||||
|
||||
std::string FragmentProgramDecompiler::ClampValue(const std::string& code, u32 precision)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue