diff --git a/src/util/d3d11_stream_buffer.cpp b/src/util/d3d11_stream_buffer.cpp index adb59f180..4b49bbdd1 100644 --- a/src/util/d3d11_stream_buffer.cpp +++ b/src/util/d3d11_stream_buffer.cpp @@ -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(hr), alignment, min_size, m_size, m_position, static_cast(map_type)); Panic("Map failed"); } diff --git a/src/util/d3d12_device.cpp b/src/util/d3d12_device.cpp index 1eb83ded0..9e3980242 100644 --- a/src/util/d3d12_device.cpp +++ b/src/util/d3d12_device.cpp @@ -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);