Nikolay Sivov : d2d1/tests: Enable effect context tests on Wine.

Alexandre Julliard julliard at winehq.org
Mon Jun 27 16:12:52 CDT 2022


Module: wine
Branch: master
Commit: 906b659752beab7d47066ce244e53d524e2874c4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=906b659752beab7d47066ce244e53d524e2874c4

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Jun 27 01:31:28 2022 +0300

d2d1/tests: Enable effect context tests on Wine.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>

---

 dlls/d2d1/tests/d2d1.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 9aeb41b76b1..6ba4d8cec59 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -10886,8 +10886,6 @@ static void test_effect_context(BOOL d3d11)
     hr = ID2D1Effect_GetValueByName(effect, L"Context",
             D2D1_PROPERTY_TYPE_IUNKNOWN, (BYTE *)&effect_context, sizeof(effect_context));
     ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
-    if (!strcmp(winetest_platform, "wine"))
-        goto done;
 
     /* Test shader loading */
     loaded = ID2D1EffectContext_IsShaderLoaded(effect_context, &GUID_TestVertexShader);
@@ -10920,9 +10918,7 @@ static void test_effect_context(BOOL d3d11)
     loaded = ID2D1EffectContext_IsShaderLoaded(effect_context, &GUID_TestPixelShader);
     ok(loaded, "Shader is not loaded.\n");
 
-done:
-    if (effect)
-        ID2D1Effect_Release(effect);
+    ID2D1Effect_Release(effect);
     hr = ID2D1Factory1_UnregisterEffect(factory, &CLSID_TestEffect);
     ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
     release_test_context(&ctx);




More information about the wine-cvs mailing list