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/VideoBackends/Vulkan/VKGfx.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/VideoBackends/Vulkan/VKGfx.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/VKGfx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp index c071d99357..c88e422c98 100644 --- a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp @@ -5,9 +5,9 @@ #include <cstddef> #include <cstdio> +#include <utility> #include "Common/CommonTypes.h" -#include "Common/EnumUtils.h" #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" @@ -273,7 +273,7 @@ bool VKGfx::BindBackbuffer(const ClearColor& clear_color) else { ERROR_LOG_FMT(VIDEO, "Unknown present error {:#010X} {}, please report.", - Common::ToUnderlying(res), VkResultToString(res)); + std::to_underlying(res), VkResultToString(res)); m_swap_chain->RecreateSwapChain(); } @@ -286,8 +286,8 @@ bool VKGfx::BindBackbuffer(const ClearColor& clear_color) } else { - PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", - Common::ToUnderlying(res), VkResultToString(res)); + PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", std::to_underlying(res), + VkResultToString(res)); } } } |
