dxgi: Initialize auto_restore_display_mode in dxgi_factory_CreateSwapChain() (Valgrind).

This commit is contained in:
Henri Verbeet 2015-04-29 17:27:33 +02:00 committed by Alexandre Julliard
parent ca46914d07
commit eb27944e78

View File

@ -229,6 +229,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSwapChain(IDXGIFactory1 *ifa
wined3d_desc.flags = 0; /* WINED3DPRESENTFLAG_DISCARD_DEPTHSTENCIL? */
wined3d_desc.refresh_rate = dxgi_rational_to_uint(&desc->BufferDesc.RefreshRate);
wined3d_desc.swap_interval = WINED3DPRESENT_INTERVAL_DEFAULT;
wined3d_desc.auto_restore_display_mode = TRUE;
hr = IWineDXGIDevice_create_swapchain(dxgi_device, &wined3d_desc, &wined3d_swapchain);
IWineDXGIDevice_Release(dxgi_device);