[Bug 10758] myst4 crashes during startup
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Oct 5 15:36:52 CDT 2008
http://bugs.winehq.org/show_bug.cgi?id=10758
--- Comment #9 from Jim Cameron <jim_24601 at btinternet.com> 2008-10-05 15:36:51 ---
Created an attachment (id=16488)
--> (http://bugs.winehq.org/attachment.cgi?id=16488)
Keep D3D9 device's current depth-stencil surface from being deleted when its
refcount goes to 0
Attached is a proof-of-concept patch that fixes the problem with Myst IV. I've
added a private reference count to IDirect3DSurface9_Impl that is incremented
when a surface is passed to SetDepthStencilSurface() and decremented when it is
no longer required. Wine's Direct3D 9 tests pass with the patch.
I haven't included a test for this specific case, nor considered previous
Direct3D interface versions or other surface types. The private reference count
may also do strange things with implicit surfaces (the auto-depth-stencil
buffer). We should look into all these things if we do adopt this approach.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list