[PATCH 04/11] d3d11/tests: Add more tests for D3D11CreateDeviceAndSwapChain().
Józef Kucia
jkucia at codeweavers.com
Tue Apr 12 05:29:39 CDT 2016
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
Those tests could not be added before because a reference to a device
wasn't kept in a swapchain.
---
dlls/d3d11/tests/d3d11.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 8ba6a77..b7dc369 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -677,8 +677,16 @@ static void test_create_device(void)
&swapchain_desc, NULL, NULL, NULL, NULL);
ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
+ hr = D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, 0, D3D11_SDK_VERSION,
+ &swapchain_desc, &swapchain, NULL, NULL, NULL);
+ ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
+ IDXGISwapChain_Release(swapchain);
+
swapchain_desc.OutputWindow = NULL;
hr = D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, 0, D3D11_SDK_VERSION,
+ &swapchain_desc, NULL, NULL, NULL, NULL);
+ ok(hr == S_FALSE, "D3D11CreateDeviceAndSwapChain returned %#x.\n", hr);
+ hr = D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, 0, D3D11_SDK_VERSION,
&swapchain_desc, NULL, &device, NULL, NULL);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
ID3D11Device_Release(device);
--
2.4.10
More information about the wine-patches
mailing list