dxgi/tests: We don't need a custom window class.
This commit is contained in:
parent
0933332c73
commit
142bcb5d3c
|
@ -396,7 +396,6 @@ static void test_createswapchain(void)
|
||||||
IDXGISwapChain *swapchain;
|
IDXGISwapChain *swapchain;
|
||||||
DXGI_SWAP_CHAIN_DESC creation_desc, result_desc;
|
DXGI_SWAP_CHAIN_DESC creation_desc, result_desc;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
WNDCLASSA wc = {0};
|
|
||||||
UINT i;
|
UINT i;
|
||||||
|
|
||||||
const struct refresh_rates refresh_list[] =
|
const struct refresh_rates refresh_list[] =
|
||||||
|
@ -414,11 +413,6 @@ static void test_createswapchain(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wc.lpfnWndProc = DefWindowProcA;
|
|
||||||
wc.lpszClassName = "dxgi_test_wc";
|
|
||||||
|
|
||||||
RegisterClassA(&wc);
|
|
||||||
|
|
||||||
creation_desc.OutputWindow = 0;
|
creation_desc.OutputWindow = 0;
|
||||||
creation_desc.BufferDesc.Width = 800;
|
creation_desc.BufferDesc.Width = 800;
|
||||||
creation_desc.BufferDesc.Height = 600;
|
creation_desc.BufferDesc.Height = 600;
|
||||||
|
@ -431,7 +425,7 @@ static void test_createswapchain(void)
|
||||||
creation_desc.SampleDesc.Quality = 0;
|
creation_desc.SampleDesc.Quality = 0;
|
||||||
creation_desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
|
creation_desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
|
||||||
creation_desc.BufferCount = 1;
|
creation_desc.BufferCount = 1;
|
||||||
creation_desc.OutputWindow = CreateWindowA("dxgi_test_wc", "dxgi_test", 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
creation_desc.OutputWindow = CreateWindowA("static", "dxgi_test", 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||||
creation_desc.Windowed = TRUE;
|
creation_desc.Windowed = TRUE;
|
||||||
creation_desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
|
creation_desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
|
||||||
creation_desc.Flags = 0;
|
creation_desc.Flags = 0;
|
||||||
|
|
Loading…
Reference in New Issue