http://bugs.winehq.org/show_bug.cgi?id=28201
--- Comment #4 from Stefan Dösinger stefandoesinger@gmx.at 2011-08-28 04:07:15 CDT --- Created an attachment (id=36127) --> (http://bugs.winehq.org/attachment.cgi?id=36127) Unset the depth stencil before reset
It looks like the unreleased resource is a INTZ depth stencil texture. The d3d9 refcount is 0, so the app did its job and released it, but it still exists in wined3d. The logfile confused me a bit, but the only reason to keep the surface around is if it is currently assigned as depth stencil. This patch unsets the depth stencil before checking if any D3DPOOL_DEFAULT resources are left.