bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.05k stars 1.94k forks source link

Dxgi::shutdown() asserts on 4 GPUs host #3305

Closed UMU618 closed 5 months ago

UMU618 commented 5 months ago

Describe the bug Dxgi::shutdown() asserts on host that has 4 or more GPUs. You can use IDD to create some virtual GPUs.

To Reproduce Steps to reproduce the behavior:

  1. Install some remote desktop software, that has virtual monitors/GPUs, and install enough to get 4 GPUs.
  2. Run example-00-helloworld.
  3. close the example-00-helloworld app.
  4. Asserts on DX_RELEASE(m_factory, 0); in Dxgi::shutdown().

Expected behavior No Asserts, just like 1 GPU.

Screenshots image

Additional context Windows 10\11 with 4 GPUs.

BX_COUNTOF(_caps.gpu) is 4!