message: Fixed issue in hardware adapter enumeration in D3D12 backend
diff: @@ -76,12 +76,12 @@ public:
  ISwapChain** ppSwapChain )override final;
  };
  -void GetHardwareAdapter(IDXGIFactory2* pFactory, IDXGIAdapter1** ppAdapter)
  +static void GetHardwareAdapter(IDXGIFactory2* pFactory, IDXGIAdapter1** ppAdapter)
  {
  CComPtr<IDXGIAdapter1> adapter;
  *ppAdapter = nullptr;
  - for (UINT adapterIndex = 0; DXGI_ERROR_NOT_FOUND != pFactory->EnumAdapters1(adapterIndex, &adapter); ++adapterIndex)
  + for (UINT adapterIndex = 0; DXGI_ERROR_NOT_FOUND != pFactory->EnumAdapters1(adapterIndex, &adapter); ++adapterIndex, adapter.Release())
  {
  DXGI_ADAPTER_DESC1 desc;
  adapter->GetDesc1(&desc);
  