mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
D3D: Migrate logging over to fmt
Migrates the logging over to the fmt-capable logger.
This commit is contained in:
@ -67,7 +67,7 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||
HRESULT hr = dxgi_factory->EnumAdapters(adapter_index, adapter.GetAddressOf());
|
||||
if (FAILED(hr))
|
||||
{
|
||||
WARN_LOG(VIDEO, "Adapter %u not found, using default", adapter_index);
|
||||
WARN_LOG_FMT(VIDEO, "Adapter {} not found, using default", adapter_index);
|
||||
adapter = nullptr;
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||
}
|
||||
else
|
||||
{
|
||||
WARN_LOG(VIDEO, "Debug layer requested but not available.");
|
||||
WARN_LOG_FMT(VIDEO, "Debug layer requested but not available.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||
hr = device.As(&device1);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
WARN_LOG(VIDEO, "Missing Direct3D 11.1 support. Logical operations will not be supported.");
|
||||
WARN_LOG_FMT(VIDEO, "Missing Direct3D 11.1 support. Logical operations will not be supported.");
|
||||
}
|
||||
|
||||
stateman = std::make_unique<StateManager>();
|
||||
@ -156,9 +156,9 @@ void Destroy()
|
||||
}
|
||||
|
||||
if (remaining_references)
|
||||
ERROR_LOG(VIDEO, "Unreleased references: %i.", remaining_references);
|
||||
ERROR_LOG_FMT(VIDEO, "Unreleased references: {}.", remaining_references);
|
||||
else
|
||||
NOTICE_LOG(VIDEO, "Successfully released all device references!");
|
||||
NOTICE_LOG_FMT(VIDEO, "Successfully released all device references!");
|
||||
|
||||
dxgi_factory.Reset();
|
||||
D3DCommon::UnloadLibraries();
|
||||
|
Reference in New Issue
Block a user