WineD3D refcounting fun part II :)

H. Verbeet hverbeet at
Fri Feb 24 14:46:27 CST 2006

On 24/02/06, Stefan Dösinger <stefandoesinger at> wrote:
> remains open is if not unsetting the texture stages is a bug too. Can someone
> check on Windows if (a) creating a surface or texture addrefs the
> Direct3DDevice, and if (b) assigning a texture to a texture stage addrefs the
> Texture? If (a) isn't true, we should unset all texture stages when the
> WineD3DDevice is released, if (b) is false we shouldn't do that too. If (a)
> and (b) are true, the application is buggy too. I'm sorry that I can't test,
> because I've no D3D9-Equipped windows machine available ATM.
CreateTexture adds a reference to the device. SetTexture doesn't add a
reference to the texture.

More information about the wine-devel mailing list