=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: d3d8/tests: Call TestCooperativeLevel after Present.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 27 16:07:41 CST 2014


Module: wine
Branch: master
Commit: d1bd7094715aaad6dc0ddf05006946fa14993b0c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d1bd7094715aaad6dc0ddf05006946fa14993b0c

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Nov 26 19:08:55 2014 +0100

d3d8/tests: Call TestCooperativeLevel after Present.

---

 dlls/d3d8/tests/device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 99fe70a..6a4dcc2 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -6812,10 +6812,10 @@ static void test_lost_device(void)
 
     ret = SetForegroundWindow(GetDesktopWindow());
     ok(ret, "Failed to set foreground window.\n");
-    hr = IDirect3DDevice8_TestCooperativeLevel(device);
-    ok(hr == D3DERR_DEVICELOST, "Got unexpected hr %#x.\n", hr);
     hr = IDirect3DDevice8_Present(device, NULL, NULL, NULL, NULL);
     ok(hr == D3DERR_DEVICELOST, "Got unexpected hr %#x.\n", hr);
+    hr = IDirect3DDevice8_TestCooperativeLevel(device);
+    ok(hr == D3DERR_DEVICELOST, "Got unexpected hr %#x.\n", hr);
 
     ret = ShowWindow(window, SW_RESTORE);
     ok(ret, "Failed to restore window.\n");




More information about the wine-cvs mailing list