From c51bf7b08247d3f78b1a09b8ffc2a45a22ce97e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B3zef=20Kucia?= Date: Tue, 31 Jul 2012 15:26:37 +0200 Subject: [PATCH] d3dx9/tests: Clean up device state after tests. --- dlls/d3dx9_36/tests/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/d3dx9_36/tests/core.c b/dlls/d3dx9_36/tests/core.c index cb5c7ec22c4..eb1e769ef26 100644 --- a/dlls/d3dx9_36/tests/core.c +++ b/dlls/d3dx9_36/tests/core.c @@ -927,6 +927,8 @@ static void test_ID3DXRenderToSurface_device_state(IDirect3DDevice9 *device) compare_device_state(¤t_state, &pre_state, FALSE); release_device_state(¤t_state); + check_release((IUnknown *)render, 0); + /* if EndScene isn't called, the device state isn't restored */ hr = retrieve_device_state(device, ¤t_state); ok(SUCCEEDED(hr), "Failed to retrieve device state\n"); @@ -936,7 +938,7 @@ static void test_ID3DXRenderToSurface_device_state(IDirect3DDevice9 *device) hr = apply_device_state(device, &pre_state); ok(SUCCEEDED(hr), "Failed to restore previous device state\n"); - check_release((IUnknown *)render, 0); + IDirect3DDevice9_EndScene(device); } release_device_state(&pre_state); -- 2.11.4.GIT