D3D11Device: Fix a couple of incorrect log messages

pull/3730/head
Stenzek 5 months ago
parent 86aabe307e
commit 730c44fef5
No known key found for this signature in database

@ -129,7 +129,7 @@ D3D11StreamBuffer::MappingResult D3D11StreamBuffer::Map(ID3D11DeviceContext1* co
hr = context->Map(m_buffer.Get(), 0, map_type, 0, &sr);
if (FAILED(hr)) [[unlikely]]
{
ERROR_LOG("Map failed: 0x{:08X} (alignment {}, minsize {}, size {}, position [], map type {})",
ERROR_LOG("Map failed: 0x{:08X} (alignment {}, minsize {}, size {}, position {}, map type {})",
static_cast<unsigned>(hr), alignment, min_size, m_size, m_position, static_cast<u32>(map_type));
Panic("Map failed");
}

@ -235,7 +235,7 @@ bool D3D12Device::CreateDeviceAndMainSwapChain(std::string_view adapter, CreateF
}
GPUDriverType driver_type = GPUDriverType::Unknown;
if (std::string adapter_name = D3DCommon::GetAdapterName(m_adapter.Get(), &driver_type); adapter_name.empty())
if (std::string adapter_name = D3DCommon::GetAdapterName(m_adapter.Get(), &driver_type); !adapter_name.empty())
INFO_LOG("D3D Adapter: {}", adapter_name);
SetDriverType(driver_type);

Loading…
Cancel
Save