d3d [1]: Remove AddRef from IWineD3DDevice_GetVertexDeclaration.

Markus Amsler markus.amsler at oribi.org
Wed Nov 22 13:57:59 CST 2006

H. Verbeet wrote:
> On 22/11/06, Robert Shearman <rob at codeweavers.com> wrote:

>> These patches violate COM rules. Is this for performance or other 
>> reasons?
 > The plan seems to be to not use COM for wined3d anymore, mainly
 > because the layering of d3d87/8/9 on top of wined3d is causing some
 > problems with reference counts. Those could probably be solved by
 > using eg aggregation, but I think the general feeling is that COM only
 > makes things harder in wined3d.

It's about simplifying code, with the side effect of perhaps small 
performance gains. It's also the first step to drop COM in wined3d, but 
that's not my intention (it seems Stefan likes the idea).

Wined3d refcounting is not causing refcount problems in d3dx, they are 
completly different. It just makes things easier.

More information about the wine-devel mailing list