diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-04-12 21:40:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-12 21:40:29 +0200 |
| commit | b2de380d162c4805edb94808f38a214725d2724e (patch) | |
| tree | 1d8a9e7eea10820e5d645ad5028e506836b856de /Source/Core/VideoBackends/Software/Tev.cpp | |
| parent | 0bfeb37a1f50193d39559d29802cb48f45db2b02 (diff) | |
| parent | 40bb9974f21878e64fb03d70e717cb996bf13a29 (diff) | |
Merge pull request #6635 from spycrab/fix_linter
Tools: Bump lint.sh version
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Tev.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index a9f2c61338..fb6107ea98 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -776,9 +776,9 @@ void Tev::Draw() // Based on that, choose the index such that points which are far away from the z-axis use the // 10th "k" value and such that central points use the first value. float floatindex = 9.f - std::abs(offset) * 9.f; - floatindex = (floatindex < 0.f) ? 0.f : (floatindex > 9.f) ? - 9.f : - floatindex; // TODO: This shouldn't be necessary! + floatindex = (floatindex < 0.f) ? + 0.f : + (floatindex > 9.f) ? 9.f : floatindex; // TODO: This shouldn't be necessary! // Get the two closest integer indices, look up the corresponding samples const int indexlower = (int)floor(floatindex); |
