dxgi: Do not store IDXGIFactory in IDXGIDevice.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eb039240e5
commit
5cd719b867
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue