diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 23:49:10 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 23:49:10 +0100 |
| commit | 55f0715ad4edf4485bc7b35e49fbd883ce760e47 (patch) | |
| tree | 2b016eb261d2138a56c00a682abfefa96174a696 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | cc0ce62e7ff283919c95c12a1c8e3b0887271690 (diff) | |
c++23: Replace Common::ToUnderlying with std::to_underlying
Requires at least GCC 11, Clang 13, MSVC 19.30 (VS2022 17.0), or AppleClang 13.1.6 (XCode 13.3).
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 6ae8b4f96f..2b1fab27b5 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -21,7 +21,6 @@ #include "Common/Assert.h" #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" -#include "Common/EnumUtils.h" #include "Common/FileUtil.h" #include "Common/Hash.h" #include "Common/Logging/Log.h" @@ -1031,7 +1030,7 @@ SamplerState TextureCacheBase::GetSamplerState(u32 index, float custom_tex_scale if (g_ActiveConfig.iMaxAnisotropy != AnisotropicFilteringMode::Default && IsAnisotropicEnhancementSafe(tm0)) { - state.tm0.anisotropic_filtering = Common::ToUnderlying(g_ActiveConfig.iMaxAnisotropy); + state.tm0.anisotropic_filtering = std::to_underlying(g_ActiveConfig.iMaxAnisotropy); } if (state.tm0.anisotropic_filtering != 0) |
