wined3d: Set container of swapchain surfaces to WINED3D_CONTAINER_NONE in swapchain_init() error path.

"Piotr Pawłow" pp at
Tue May 31 18:38:24 CDT 2011

Since commit fadfdf21c055caf833a137ffc269c2073dc87fd6 surface refcounts are
forwarded to the container. We need to break this forwarding in
swapchain_init() error path, otherwise the swapchain refcount goes down to
zero and swapchain_cleanup() gets called on an invalid, partly initialized
 dlls/wined3d/swapchain.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Set-container-of-swapchain-surfaces-to-WINED3D.txt
Type: text/x-patch
Size: 842 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list