=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11/tests: Check that blend states implement ID3D10BlendState.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 20 11:28:31 CDT 2015


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Oct 20 01:46:45 2015 +0200

d3d11/tests: Check that blend states implement ID3D10BlendState.

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, 10 insertions(+)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 4a9d12d..bd9ad64 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -1874,6 +1874,7 @@ static void test_create_blend_state(void)
     ULONG refcount, expected_refcount;
     ID3D11Device *device, *tmp;
     unsigned int i, j;
+    IUnknown *iface;
     HRESULT hr;
 
     if (!(device = create_device(NULL)))
@@ -1946,6 +1947,15 @@ static void test_create_blend_state(void)
                 obtained_desc.RenderTarget[0].RenderTargetWriteMask, i);
     }
 
+    hr = ID3D11BlendState_QueryInterface(blend_state1, &IID_ID3D10BlendState, (void **)&iface);
+    ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
+            "Blend state should implement ID3D10BlendState.\n");
+    if (SUCCEEDED(hr)) IUnknown_Release(iface);
+    hr = ID3D11BlendState_QueryInterface(blend_state1, &IID_ID3D10BlendState1, (void **)&iface);
+    ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
+            "Blend state should implement ID3D10BlendState1.\n");
+    if (SUCCEEDED(hr)) IUnknown_Release(iface);
+
     refcount = ID3D11BlendState_Release(blend_state1);
     ok(refcount == 1, "Got unexpected refcount %u.\n", refcount);
     refcount = ID3D11BlendState_Release(blend_state2);




More information about the wine-cvs mailing list