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

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-04-05 10:22:10 +02:00 committed by Alexandre Julliard
parent 9e4388f6ec
commit dad1424188
1 changed files with 7 additions and 3 deletions

View File

@ -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;
}