http://bugs.winehq.org/show_bug.cgi?id=8050
stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-bugs@winehq.org AssignedTo|wine-bugs@winehq.org |stefandoesinger@gmx.at Status|UNCONFIRMED |NEW Ever Confirmed| |1
------- Additional Comments From stefandoesinger@gmx.at 2007-15-04 13:42 ------- I found the bug and sent a fix to wine-patches
The problem was that I added code to IDirect3DVertexDeclaration9_Release which prevented the decl from beeing destroyed if it is the converted fvf decl, because it is still needed, but is supposed to have refcount 0. When a new vertex decl is set, I AddRef and Release it to destroy it, but unfortunately did that before unsetting the converted decl pointer :-/ . The patch adds a shared Destroy function for Release and SetVertexDeclaration to avoid the AddRef-Release games.