Commit 5cd719b8 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

dxgi: Do not store IDXGIFactory in IDXGIDevice.

parent eb039240
......@@ -86,7 +86,6 @@ static ULONG STDMETHODCALLTYPE dxgi_device_Release(IWineDXGIDevice *iface)
wined3d_device_decref(device->wined3d_device);
wined3d_mutex_unlock();
IDXGIAdapter1_Release(device->adapter);
IDXGIFactory1_Release(device->factory);
wined3d_private_store_cleanup(&device->private_store);
HeapFree(GetProcessHeap(), 0, device);
}
......@@ -454,8 +453,6 @@ HRESULT dxgi_device_init(struct dxgi_device *device, struct dxgi_device_layer *l
}
wined3d_mutex_unlock();
device->factory = &dxgi_factory->IDXGIFactory1_iface;
IDXGIFactory1_AddRef(device->factory);
device->adapter = &dxgi_adapter->IDXGIAdapter1_iface;
IDXGIAdapter1_AddRef(device->adapter);
......
......@@ -116,7 +116,6 @@ struct dxgi_device
LONG refcount;
struct wined3d_private_store private_store;
struct wined3d_device *wined3d_device;
IDXGIFactory1 *factory;
IDXGIAdapter1 *adapter;
};
......
......@@ -467,7 +467,7 @@ static void test_create_swapchain(void)
expected_refcount = get_refcount((IUnknown *)adapter);
refcount = get_refcount((IUnknown *)factory);
todo_wine ok(refcount == 2, "Got unexpected refcount %u.\n", refcount);
ok(refcount == 2, "Got unexpected refcount %u.\n", refcount);
refcount = get_refcount((IUnknown *)device);
ok(refcount == 2, "Got unexpected refcount %u.\n", refcount);
......@@ -499,7 +499,7 @@ static void test_create_swapchain(void)
IDXGISwapChain_Release(swapchain);
refcount = get_refcount((IUnknown *)factory);
todo_wine ok(refcount == 2, "Got unexpected refcount %u.\n", refcount);
ok(refcount == 2, "Got unexpected refcount %u.\n", refcount);
for (i = 0; i < sizeof(refresh_list)/sizeof(refresh_list[0]); i++)
{
......
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