From 49b0eef393f4d321928fb0b6093d58a7637cf1da Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 2 May 2014 22:47:04 -0400 Subject: Remove the min/max functions in CommonFuncs. The algorithm header has the same functions. --- Source/Core/VideoBackends/Software/TextureSampler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/TextureSampler.cpp') 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 #include #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; -- cgit v1.2.3