Stefan Dösinger : d3d9: Fix vertex decl test.
Module: wine Branch: master Commit: c4eb3de8d88a2dee813b3135f7d4a945c4d45806 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c4eb3de8d88a2dee813b3135f7... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Thu Apr 12 22:09:19 2007 +0200 d3d9: Fix vertex decl test. --- dlls/d3d9/tests/vertexdeclaration.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/d3d9/tests/vertexdeclaration.c b/dlls/d3d9/tests/vertexdeclaration.c index 4290c57..57867f1 100644 --- a/dlls/d3d9/tests/vertexdeclaration.c +++ b/dlls/d3d9/tests/vertexdeclaration.c @@ -686,7 +686,7 @@ static void test_fvf_decl_management( ok(SUCCEEDED(hr), "SetFVF returned %#x, expected %#x\n", hr, D3D_OK); if (FAILED(hr)) return; - /* The contents should correspond to the second conversion */ + /* The contents should correspond to the first conversion */ VDECL_CHECK(compare_elements(result_decl1, test_elements1)); /* Get converted decl (#3) */ @@ -700,6 +700,8 @@ static void test_fvf_decl_management( /* The contents should correspond to the second conversion */ VDECL_CHECK(compare_elements(result_decl3, test_elements2)); + /* Re-Check if the first decl was overwritten by the new Get() */ + VDECL_CHECK(compare_elements(result_decl1, test_elements1)); /* The refcounts should all be 1 */ ref1 = get_refcount((IUnknown*) result_decl1);
participants (1)
-
Alexandre Julliard