Commit dad14241 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11/tests: Also trace feature level when HAL device cannot be created.

parent 9e4388f6
......@@ -498,11 +498,15 @@ static void test_create_device(void)
HWND window;
HRESULT hr;
hr = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, 0, D3D11_SDK_VERSION, &device,
NULL, NULL);
if (FAILED(hr))
if (FAILED(hr = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, 0, D3D11_SDK_VERSION,
&device, NULL, NULL)))
{
skip("Failed to create HAL device.\n");
if ((device = create_device(NULL)))
{
trace("Feature level %#x.\n", ID3D11Device_GetFeatureLevel(device));
ID3D11Device_Release(device);
}
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment