diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-01-12 17:16:29 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-01-13 11:11:08 -0800 |
| commit | 78e43a44042e6407318970753df4d3b5b230e80c (patch) | |
| tree | ea1856c81aba40902f49bb61ce93529e62abbd81 /Source/Core/VideoBackends | |
| parent | cc592ab81467409a42584b05d1d06fb4136ff78c (diff) | |
Make all custom fmt::formatter's format functions const
fmt 8.0.0 requires this.
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DBase.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/DX12Context.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DBase.h b/Source/Core/VideoBackends/D3D/D3DBase.h index 03872b0240..767237a5cd 100644 --- a/Source/Core/VideoBackends/D3D/D3DBase.h +++ b/Source/Core/VideoBackends/D3D/D3DBase.h @@ -57,7 +57,7 @@ struct fmt::formatter<DX11::DX11HRWrap> { constexpr auto parse(fmt::format_parse_context& ctx) { return ctx.begin(); } template <typename FormatContext> - auto format(const DX11::DX11HRWrap& hr, FormatContext& ctx) + auto format(const DX11::DX11HRWrap& hr, FormatContext& ctx) const { if (hr.m_hr == DXGI_ERROR_DEVICE_REMOVED && DX11::D3D::device != nullptr) { diff --git a/Source/Core/VideoBackends/D3D12/DX12Context.h b/Source/Core/VideoBackends/D3D12/DX12Context.h index 1528f436c3..4c5464a123 100644 --- a/Source/Core/VideoBackends/D3D12/DX12Context.h +++ b/Source/Core/VideoBackends/D3D12/DX12Context.h @@ -205,7 +205,7 @@ struct fmt::formatter<DX12::DX12HRWrap> { constexpr auto parse(fmt::format_parse_context& ctx) { return ctx.begin(); } template <typename FormatContext> - auto format(const DX12::DX12HRWrap& hr, FormatContext& ctx) + auto format(const DX12::DX12HRWrap& hr, FormatContext& ctx) const { if (hr.m_hr == DXGI_ERROR_DEVICE_REMOVED && DX12::g_dx_context != nullptr && DX12::g_dx_context->GetDevice() != nullptr) |
