mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
d3drm: Forward all IUnknown methods from IDirect3DRMMeshBuilder3.
This commit is contained in:
parent
2e3e62b6aa
commit
9defecb013
@ -927,28 +927,13 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_QueryInterface(IDirect3DRMMesh
|
||||
static ULONG WINAPI IDirect3DRMMeshBuilder3Impl_AddRef(IDirect3DRMMeshBuilder3* iface)
|
||||
{
|
||||
IDirect3DRMMeshBuilderImpl *This = impl_from_IDirect3DRMMeshBuilder3(iface);
|
||||
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
return InterlockedIncrement(&This->ref);
|
||||
return IDirect3DRMMeshBuilder2_AddRef(&This->IDirect3DRMMeshBuilder2_iface);
|
||||
}
|
||||
|
||||
static ULONG WINAPI IDirect3DRMMeshBuilder3Impl_Release(IDirect3DRMMeshBuilder3* iface)
|
||||
{
|
||||
IDirect3DRMMeshBuilderImpl *This = impl_from_IDirect3DRMMeshBuilder3(iface);
|
||||
ULONG ref = InterlockedDecrement(&This->ref);
|
||||
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
if (!ref)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, This->pVertices);
|
||||
HeapFree(GetProcessHeap(), 0, This->pNormals);
|
||||
HeapFree(GetProcessHeap(), 0, This->pFaceData);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
return ref;
|
||||
return IDirect3DRMMeshBuilder2_Release(&This->IDirect3DRMMeshBuilder2_iface);
|
||||
}
|
||||
|
||||
/*** IDirect3DRMObject methods ***/
|
||||
|
Loading…
Reference in New Issue
Block a user