Keep swapchain while its backbuffer is in use.

Michael Karcher wine at mkarcher.dialup.fu-berlin.de
Mon Jun 2 15:51:16 CDT 2008


DirectX 9 SDK Documentation says that the surfaces acquired by
IDirect3DSwapChain9::GetBackBuffer must be released before the swap
chain may be released. The back buffer of the new chain is not released
while it is used as render target, so we have to keep the swapchain alive.

This fixes the warn+heap errors/crashes of d3d9:stateblock, and should
close the bug about differences with warn+heap enabled.
---
 dlls/d3d9/tests/stateblock.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ca25ac1f68e3fe68df4fb6b5321ed03209809da4.diff
Type: text/x-patch
Size: 862 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080602/6835b8ab/attachment.bin 


More information about the wine-patches mailing list