summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/TextureSampler.cpp
diff options
context:
space:
mode:
authorshuffle2 <godisgovernment@gmail.com>2014-05-29 20:10:01 -0700
committershuffle2 <godisgovernment@gmail.com>2014-05-29 20:10:01 -0700
commit8fc83d8ffca75f86c144a7798ebf0661a1eb68ef (patch)
tree741357c06acd966494684f8fdd4ec89e961d9887 /Source/Core/VideoBackends/Software/TextureSampler.cpp
parent30973459292d734fac12d1fefaf98edf37ad7976 (diff)
parent49b0eef393f4d321928fb0b6093d58a7637cf1da (diff)
Merge pull request #334 from lioncash/use-std-minmax
Remove the min/max functions in CommonFuncs.
Diffstat (limited to 'Source/Core/VideoBackends/Software/TextureSampler.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/TextureSampler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/TextureSampler.cpp b/Source/Core/VideoBackends/Software/TextureSampler.cpp
index b77248ff9d..d5a7f891b9 100644
--- a/Source/Core/VideoBackends/Software/TextureSampler.cpp
+++ b/Source/Core/VideoBackends/Software/TextureSampler.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
+#include <algorithm>
#include <cmath>
#include "Core/HW/Memmap.h"
@@ -142,8 +143,8 @@ void SampleMip(s32 s, s32 t, s32 mip, bool linear, u8 texmap, u8 *sample)
while (mip)
{
- mipWidth = max(mipWidth, fmtWidth);
- mipHeight = max(mipHeight, fmtHeight);
+ mipWidth = std::max(mipWidth, fmtWidth);
+ mipHeight = std::max(mipHeight, fmtHeight);
u32 size = (mipWidth * mipHeight * fmtDepth) >> 1;
imageSrc += size;