On 25/04/07, Stefan Dösinger stefandoesinger@gmx.at wrote:
Well, I don't pass the impl, I pass the IDirectDraw7 interface.
True, but that isn't the issue :-)
What I think is a bit questionable is that the directdraw object isn't directly related to the vertexdeclaration we create. Ie, wrt refcounts as you mention below.
Of course I could create an additional IParent interface, but I'd have to digg it out later when destroying the declaration. As long as WineD3D doesn't destroy the parent behind my back it is ok. It does not do at the moment, and when we change WineD3D from that regard we'll have to adjust ddraw anyway, even if I passed a seperate IParent.