1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

d3d8/tests: Test the presentation parameters after creating an additional swap chain.

This commit is contained in:
Akihiro Sagawa 2023-12-24 22:14:34 +09:00 committed by Alexandre Julliard
parent 45ea10c71f
commit 8eefd729ec

View file

@ -410,7 +410,11 @@ static void test_swapchain(void)
d3dpp.BackBufferCount = 0;
hr = IDirect3DDevice8_CreateAdditionalSwapChain(device, &d3dpp, &swapchain1);
ok(SUCCEEDED(hr), "Got hr %#lx.\n", hr);
ok(d3dpp.BackBufferCount == 1, "The back buffer count in the presentparams struct is %d\n", d3dpp.BackBufferCount);
ok(!d3dpp.BackBufferWidth, "Got unexpected BackBufferWidth %u.\n", d3dpp.BackBufferWidth);
ok(!d3dpp.BackBufferHeight, "Got unexpected BackBufferHeight %u.\n", d3dpp.BackBufferHeight);
ok(d3dpp.BackBufferFormat == D3DFMT_A8R8G8B8, "Got unexpected BackBufferFormat %#x.\n", d3dpp.BackBufferFormat);
ok(d3dpp.BackBufferCount == 1, "Got unexpected BackBufferCount %u.\n", d3dpp.BackBufferCount);
ok(!d3dpp.hDeviceWindow, "Got unexpected hDeviceWindow %p.\n", d3dpp.hDeviceWindow);
d3dpp.hDeviceWindow = NULL;
d3dpp.BackBufferCount = 1;