summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2018-10-09 08:54:17 +0100
committerGitHub <noreply@github.com>2018-10-09 08:54:17 +0100
commitbb6aff1d78ec325d0e5889821cd7f9be5b17d27d (patch)
tree27ea67ace40234c2bd47c3d3f7f47d3c4d8ae320 /Source/Core/VideoBackends/Software
parent31594a81388d08f4989cf7031062d023b78f88ed (diff)
parent56fdcf5f00a8066617ae738652ab041614b0938a (diff)
Merge pull request #7456 from Tilka/drop_floor
VideoCommon: remove unnecessary floor()
Diffstat (limited to 'Source/Core/VideoBackends/Software')
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index 0d96d16506..4b7c41347c 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -780,7 +780,7 @@ void Tev::Draw()
floatindex = MathUtil::Clamp(floatindex, 0.f, 9.f); // TODO: This shouldn't be necessary!
// Get the two closest integer indices, look up the corresponding samples
- const int indexlower = (int)floor(floatindex);
+ const int indexlower = (int)floatindex;
const int indexupper = indexlower + 1;
// Look up coefficient... Seems like multiplying by 4 makes Fortune Street work properly (fog
// is too strong without the factor)