Commit ed411d97 authored by Aaryaman Vasishta's avatar Aaryaman Vasishta Committed by Alexandre Julliard

d3drm: Thunk IDirect3DRMTexture2::Release to version 3.

parent 0c06bb7a
......@@ -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);
if (!refcount)
HeapFree(GetProcessHeap(), 0, texture);
TRACE("iface %p.\n", iface);
return refcount;
return IDirect3DRMTexture3_Release(&texture->IDirect3DRMTexture3_iface);
}
static HRESULT WINAPI d3drm_texture2_Clone(IDirect3DRMTexture2 *iface,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment