RFC: d3d9: Increment the reference count of the IDirect3D9 instance when creating a device.

Stefan Dösinger stefandoesinger at gmx.at
Wed Jun 1 10:48:15 CDT 2011

On Tuesday 31 May 2011 13:55:21 Andrew Nguyen wrote:
> The Pathologic demo in bug 21552 expects that the reference count of a
> IDirect3D9 instance is incremented after a successful call to
> CreateDevice with the instance.
> Does my proposed fix for d3d8 and d3d9 manage the reference count of the
> device parent appropriately? In particular, I'm concerned about the
> slightly cumbersome acquisition of the pointer to the parent instance
> within the Release call for the Direct3D device interface.
I think it is correct. But you can also just store a pointer to the 
IDirect3D8/9 interface in the d3d8/9 device implementation like the resources 
do. That way you can avoid the tricky object querying in the release function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110601/598816b8/attachment.pgp>

More information about the wine-devel mailing list