Module: wine Branch: master Commit: dd2c7d0d8c61ab226789b860990095ff91c608fb URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd2c7d0d8c61ab226789b86099...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Apr 7 18:46:01 2011 +0200
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 | 31 +++++++++++++++++++++++++++---- dlls/d3d9/swapchain.c | 28 ++++++++++++++++++++++++---- dlls/ddraw/ddraw.c | 2 +- dlls/dxgi/swapchain.c | 18 +++++++++++++++--- dlls/wined3d/device.c | 4 ++-- dlls/wined3d/swapchain.c | 5 ++++- dlls/wined3d/wined3d_private.h | 4 +++- include/wine/wined3d.idl | 1 + 8 files changed, 77 insertions(+), 16 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=dd2c7d0d8c61ab226789b8...