Józef Kucia : d3dx9/tests: Clean up device state after tests.
Module: wine Branch: master Commit: c51bf7b08247d3f78b1a09b8ffc2a45a22ce97e6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c51bf7b08247d3f78b1a09b8ff... Author: Józef Kucia <joseph.kucia(a)gmail.com> Date: Tue Jul 31 15:26:37 2012 +0200 d3dx9/tests: Clean up device state after tests. --- dlls/d3dx9_36/tests/core.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/tests/core.c b/dlls/d3dx9_36/tests/core.c index cb5c7ec..eb1e769 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);
participants (1)
-
Alexandre Julliard