d3dx9/tests: Clean up device state after tests.
This commit is contained in:
parent
c10d95b64a
commit
c51bf7b082
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue