[1/6] ddraw: Use ddraw_surface_release_iface to destroy leftover surfaces.

Ričardas Barkauskas rbarkauskas at codeweavers.com
Tue Jun 28 02:01:33 CDT 2011


These patches finnish ddraw surface refcount separation (though few
inconsistencies are left they seem to be separate issues).

Patch 1 is needed as it's now possible to go to negative values with
internal reference counts. This ends up as large positive values
returned by Release and doesn't work well.

Test showed that ddraw surface reference counts can't go below 0 and can
be AddRef'ed from 0 if reference to other version surface iface was held
during the release. As this is only based on test and so far there is no
known application that needs it (at least I don't know it) - lets leave
this for later.

So maybe bug 23621 can be closed? Recoil demo works for me in software
mode :)

Ričardas Barkauskas
REalm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-ddraw-Use-ddraw_surface_release_iface-to-destroy-lefto.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110628/7cbaddc9/attachment.txt>


More information about the wine-patches mailing list