=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11/tests: Also trace feature level when HAL device cannot be created.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 5 11:07:33 CDT 2016


Module: wine
Branch: master
Commit: dad14241887bb3495972d86402b046a9df76e469
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dad14241887bb3495972d86402b046a9df76e469

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Apr  5 10:22:10 2016 +0200

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

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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




More information about the wine-cvs mailing list