ddraw/tests: WARP returns SURFACELOST when flipping a surface in normal mode.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
885f5bf04f
commit
843e8e0726
|
@ -7314,7 +7314,8 @@ static void test_lost_device(void)
|
||||||
hr = IDirectDrawSurface_IsLost(surface);
|
hr = IDirectDrawSurface_IsLost(surface);
|
||||||
ok(hr == DD_OK, "Got unexpected hr %#x.\n", hr);
|
ok(hr == DD_OK, "Got unexpected hr %#x.\n", hr);
|
||||||
hr = IDirectDrawSurface_Flip(surface, NULL, DDFLIP_WAIT);
|
hr = IDirectDrawSurface_Flip(surface, NULL, DDFLIP_WAIT);
|
||||||
ok(hr == DDERR_NOEXCLUSIVEMODE, "Got unexpected hr %#x.\n", hr);
|
ok(hr == DDERR_NOEXCLUSIVEMODE || broken(ddraw_is_warp(ddraw) && hr == DDERR_SURFACELOST),
|
||||||
|
"Got unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
/* Trying to restore the primary will crash, probably because flippable
|
/* Trying to restore the primary will crash, probably because flippable
|
||||||
* surfaces can't exist in DDSCL_NORMAL. */
|
* surfaces can't exist in DDSCL_NORMAL. */
|
||||||
|
|
Loading…
Reference in New Issue