diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2026-01-17 16:49:57 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-17 16:49:57 -0600 |
| commit | b556bd99d72d996364f423b663af5d02a9610c4f (patch) | |
| tree | 9942d30854cbe59a390221087486ab64254e9ba7 /Source/Core/VideoCommon/Resources/MaterialResource.cpp | |
| parent | 8a606fca88a81b5a24d8cc53e5eaba91f2e38fbd (diff) | |
| parent | 55f0715ad4edf4485bc7b35e49fbd883ce760e47 (diff) | |
Merge pull request #14268 from JoshuaVandaele/std-tounderlying
c++23: Replace Common::ToUnderlying with std::to_underlying
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) |
