Commit f2afa424 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

dxgi/tests: Accept DXGI_STATUS_OCCLUDED as result when creating fullscreen swapchains.

These can legitimately occur in some circumstances, and shouldn't otherwise affect these tests. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4efd4338
...@@ -2125,7 +2125,7 @@ static void test_create_swapchain(void) ...@@ -2125,7 +2125,7 @@ static void test_create_swapchain(void)
/* Fullscreen */ /* Fullscreen */
creation_desc.Windowed = FALSE; creation_desc.Windowed = FALSE;
hr = IDXGIFactory_CreateSwapChain(factory, obj, &creation_desc, &swapchain); hr = IDXGIFactory_CreateSwapChain(factory, obj, &creation_desc, &swapchain);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); ok(hr == S_OK || hr == DXGI_STATUS_OCCLUDED, "Got unexpected hr %#lx.\n", hr);
hr = IDXGISwapChain_GetDesc(swapchain, &result_desc); hr = IDXGISwapChain_GetDesc(swapchain, &result_desc);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
hr = IDXGISwapChain_SetFullscreenState(swapchain, FALSE, NULL); hr = IDXGISwapChain_SetFullscreenState(swapchain, FALSE, NULL);
...@@ -3573,7 +3573,7 @@ static void test_inexact_modes(void) ...@@ -3573,7 +3573,7 @@ static void test_inexact_modes(void)
capture_fullscreen_state(&initial_state.fullscreen_state, swapchain_desc.OutputWindow); capture_fullscreen_state(&initial_state.fullscreen_state, swapchain_desc.OutputWindow);
hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)device, &swapchain_desc, &swapchain); hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)device, &swapchain_desc, &swapchain);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); ok(hr == S_OK || hr == DXGI_STATUS_OCCLUDED, "Got unexpected hr %#lx.\n", hr);
hr = IDXGISwapChain_GetDesc(swapchain, &result_desc); hr = IDXGISwapChain_GetDesc(swapchain, &result_desc);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
hr = IDXGISwapChain_SetFullscreenState(swapchain, FALSE, NULL); hr = IDXGISwapChain_SetFullscreenState(swapchain, FALSE, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment