Search code examples
directxdirectx-11sharpdxdxgi

IDXGIFactory::EnumAdapters() does not return any adapters


I'm developing an DirectX11 application. During initialization I enumerate the available graphics adapters as described here.

Now, for one of our customers the number of available adapters appears to be zero: EnumAdapters(0, &pAdapter) already returns DXGI_ERROR_NOT_FOUND.

How is this possible? Shouldn't there always be at least one graphics adapter available? The computer has a graphics card with newest drivers installed and the display is working.

Note: Our application actually uses SharpDX but the procedure is the same. The failing equivalent is GetAdapterCount() returning 0.


Solution

  • I'll answer my own question:

    As it turned out this problem occurred when our customer tried to run our application in safe-mode because of another unrelated problem. In safe-mode the graphics driver isn't loaded and hence there would not be any adapters.