summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureInfo.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-04-18 18:05:12 +0200
committerGitHub <noreply@github.com>2023-04-18 18:05:12 +0200
commit969318ff66e4b86d9d34bd123174a52c0328c0fa (patch)
tree408ff0a5a7b22489bc195cd194206cddc39038c6 /Source/Core/VideoCommon/TextureInfo.cpp
parent1a2dcc53f2d7a85b0d49e9d2b12d819a2f57b835 (diff)
parent784a21692763296cbd93f59c4cf8a58c902b81e8 (diff)
Merge pull request #11761 from lioncash/mathrev
Common/MathUtil: Move remaining utilities into MathUtil namespace
Diffstat (limited to 'Source/Core/VideoCommon/TextureInfo.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureInfo.cpp b/Source/Core/VideoCommon/TextureInfo.cpp
index 35441d4d36..b73461ba33 100644
--- a/Source/Core/VideoCommon/TextureInfo.cpp
+++ b/Source/Core/VideoCommon/TextureInfo.cpp
@@ -83,7 +83,7 @@ TextureInfo::TextureInfo(u32 stage, const u8* ptr, const u8* tlut_ptr, u32 addre
// e.g. 64x64 with 7 LODs would have the mipmap chain 64x64,32x32,16x16,8x8,4x4,2x2,1x1,0x0, so
// we limit the mipmap count to 6 there
const u32 limited_mip_count =
- std::min<u32>(IntLog2(std::max(width, height)) + 1, raw_mip_count + 1) - 1;
+ std::min<u32>(MathUtil::IntLog2(std::max(width, height)) + 1, raw_mip_count + 1) - 1;
// load mips
const u8* src_data = m_ptr + GetTextureSize();