[PATCH 08/10] d3d11/tests: Also trace feature level when HAL device cannot be created.
Józef Kucia
jkucia at codeweavers.com
Tue Apr 5 03:22:10 CDT 2016
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/d3d11/tests/d3d11.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index a38afc9..ff2d56d 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -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;
}
--
2.4.10
More information about the wine-patches
mailing list