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/Resources/MaterialResource.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/Resources/MaterialResource.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Resources/MaterialResource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Resources/MaterialResource.cpp b/Source/Core/VideoCommon/Resources/MaterialResource.cpp index 657647ffb9..38486d7932 100644 --- a/Source/Core/VideoCommon/Resources/MaterialResource.cpp +++ b/Source/Core/VideoCommon/Resources/MaterialResource.cpp @@ -3,6 +3,8 @@ #include "VideoCommon/Resources/MaterialResource.h" +#include <utility> + #include <xxh3.h> #include "Common/VariantUtil.h" @@ -30,7 +32,7 @@ SamplerState CalculateSamplerAnisotropy(const SamplerState& initial_sampler) if (g_ActiveConfig.iMaxAnisotropy != AnisotropicFilteringMode::Default && IsAnisotropicEnhancementSafe(state.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) |
