Replace MathUtil::Clamp with its std counterpart

This commit is contained in:
fearlessTobi 2018-07-24 19:08:17 +02:00
parent 14878a17d9
commit 7a3e126a4f
17 changed files with 49 additions and 72 deletions

View file

@ -6,7 +6,6 @@
#include "common/bit_field.h"
#include "common/color.h"
#include "common/common_types.h"
#include "common/math_util.h"
#include "common/vector_math.h"
#include "video_core/texture/etc1.h"
@ -110,9 +109,9 @@ union ETC1Tile {
if (GetNegationFlag(texel))
modifier *= -1;
ret.r() = MathUtil::Clamp(ret.r() + modifier, 0, 255);
ret.g() = MathUtil::Clamp(ret.g() + modifier, 0, 255);
ret.b() = MathUtil::Clamp(ret.b() + modifier, 0, 255);
ret.r() = std::clamp(ret.r() + modifier, 0, 255);
ret.g() = std::clamp(ret.g() + modifier, 0, 255);
ret.b() = std::clamp(ret.b() + modifier, 0, 255);
return ret.Cast<u8>();
}