d3d10core/tests: Fix a test failure when no adapters are present.
This commit is contained in:
parent
4296852b88
commit
7cc429312e
|
@ -35,7 +35,9 @@ static ID3D10Device *create_device(void)
|
|||
if (FAILED(hr)) goto cleanup;
|
||||
|
||||
hr = IDXGIFactory_EnumAdapters(factory, 0, &adapter);
|
||||
ok(SUCCEEDED(hr), "EnumAdapters failed, hr %#x\n", hr);
|
||||
ok(SUCCEEDED(hr) ||
|
||||
hr == DXGI_ERROR_NOT_FOUND, /* Some VMware and VirtualBox */
|
||||
"EnumAdapters failed, hr %#x\n", hr);
|
||||
if (FAILED(hr)) goto cleanup;
|
||||
|
||||
hr = D3D10CoreCreateDevice(factory, adapter, 0, NULL, &device);
|
||||
|
|
Loading…
Reference in New Issue