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

dxgi: Release target output when releasing swapchain.

It should never happen because applications are required to call SetFullscreenState() to exit fullscreen mode before releasing the swapchain. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7c5f60f2
......@@ -78,6 +78,11 @@ static ULONG STDMETHODCALLTYPE dxgi_swapchain_Release(IDXGISwapChain *iface)
if (!refcount)
{
IWineDXGIDevice *device = swapchain->device;
if (swapchain->target)
{
WARN("Releasing fullscreen swapchain.\n");
IDXGIOutput_Release(swapchain->target);
}
if (swapchain->factory)
IDXGIFactory_Release(swapchain->factory);
wined3d_mutex_lock();
......
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