wined3d: Don't free D3D swapchains until the wined3d swapchain is destroyed.
authorHenri Verbeet <hverbeet@codeweavers.com>
Thu, 7 Apr 2011 16:46:01 +0000 (18:46 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 8 Apr 2011 12:40:48 +0000 (14:40 +0200)
commitdd2c7d0d8c61ab226789b860990095ff91c608fb
tree983ec95c1abfd3dbda4e9e206c849b75a4914eee
parentd19c3588bc3c6fa8a6cf4fa42efeb5a3746b4ee6
wined3d: Don't free D3D swapchains until the wined3d swapchain is destroyed.

This will allow us the get rid of the swapchain refcounting hacks in d3d9 in
particular. This is similar to the way we handle resources that are still in
use by a stateblock, but aren't referenced anywhere by the application.
dlls/d3d8/swapchain.c
dlls/d3d9/swapchain.c
dlls/ddraw/ddraw.c
dlls/dxgi/swapchain.c
dlls/wined3d/device.c
dlls/wined3d/swapchain.c
dlls/wined3d/wined3d_private.h
include/wine/wined3d.idl