summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Tev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index 580ab58685..8d03cacac2 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -841,15 +841,8 @@ void Tev::Draw()
EfbInterface::IncPerfCounterQuadCount(PQ_ZCOMP_OUTPUT);
}
- // branchless bounding box update
- BoundingBox::coords[BoundingBox::LEFT] =
- std::min((u16)Position[0], BoundingBox::coords[BoundingBox::LEFT]);
- BoundingBox::coords[BoundingBox::RIGHT] =
- std::max((u16)Position[0], BoundingBox::coords[BoundingBox::RIGHT]);
- BoundingBox::coords[BoundingBox::TOP] =
- std::min((u16)Position[1], BoundingBox::coords[BoundingBox::TOP]);
- BoundingBox::coords[BoundingBox::BOTTOM] =
- std::max((u16)Position[1], BoundingBox::coords[BoundingBox::BOTTOM]);
+ BoundingBox::Update(static_cast<u16>(Position[0]), static_cast<u16>(Position[0]),
+ static_cast<u16>(Position[1]), static_cast<u16>(Position[1]));
#if ALLOW_TEV_DUMPS
if (g_ActiveConfig.bDumpTevStages)