mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 20:31:35 +00:00
d3d8/tests: Call TestCooperativeLevel after Present.
This commit is contained in:
parent
099bc21df7
commit
d1bd709471
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user