d3drm: Thunk IDirect3DRMTexture2::Release to version 3.

This commit is contained in:
Aaryaman Vasishta 2015-08-24 19:28:34 +05:30 committed by Alexandre Julliard
parent 0c06bb7a81
commit ed411d9701
1 changed files with 2 additions and 6 deletions

View File

@ -86,14 +86,10 @@ static ULONG WINAPI d3drm_texture2_AddRef(IDirect3DRMTexture2 *iface)
static ULONG WINAPI d3drm_texture2_Release(IDirect3DRMTexture2 *iface)
{
struct d3drm_texture *texture = impl_from_IDirect3DRMTexture2(iface);
ULONG refcount = InterlockedDecrement(&texture->ref);
TRACE("%p decreasing refcount to %u.\n", iface, refcount);
TRACE("iface %p.\n", iface);
if (!refcount)
HeapFree(GetProcessHeap(), 0, texture);
return refcount;
return IDirect3DRMTexture3_Release(&texture->IDirect3DRMTexture3_iface);
}
static HRESULT WINAPI d3drm_texture2_Clone(IDirect3DRMTexture2 *iface,