Commit 3c3bfbfd authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

dxgi: Add IDXGISwapChain3 stubs for D3D11.

parent 3fdf97a2
......@@ -470,7 +470,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_swapchain_factory_create_swapchain(IWineDX
TRACE("Created swapchain %p.\n", object);
*swapchain = (IDXGISwapChain1 *)&object->IDXGISwapChain2_iface;
*swapchain = (IDXGISwapChain1 *)&object->IDXGISwapChain3_iface;
return S_OK;
}
......
......@@ -172,7 +172,7 @@ struct dxgi_adapter *unsafe_impl_from_IDXGIAdapter(IDXGIAdapter *iface);
/* IDXGISwapChain */
struct d3d11_swapchain
{
IDXGISwapChain2 IDXGISwapChain2_iface;
IDXGISwapChain3 IDXGISwapChain3_iface;
LONG refcount;
struct wined3d_private_store private_store;
struct wined3d_swapchain *wined3d_swapchain;
......
......@@ -4329,13 +4329,13 @@ static void test_swapchain_resize(IUnknown *device, BOOL is_d3d12)
present_queue[1] = device;
if (IDXGISwapChain_QueryInterface(swapchain, &IID_IDXGISwapChain3, (void **)&swapchain3) == E_NOINTERFACE)
{
skip("IDXGISwapChain3 is not supported.\n");
win_skip("IDXGISwapChain3 is not supported.\n");
}
else if (!is_d3d12)
{
hr = IDXGISwapChain3_ResizeBuffers1(swapchain3, 2, 320, 240,
DXGI_FORMAT_B8G8R8A8_UNORM, 0, node_mask, present_queue);
ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#lx.\n", hr);
todo_wine ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#lx.\n", hr);
IDXGISwapChain3_Release(swapchain3);
}
else
......
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