wined3d: Store an IWineD3DResourceImpl pointer in struct wined3d_rendertarget_view.
This commit is contained in:
parent
e42e5247dd
commit
098cdf4ae3
|
@ -65,7 +65,7 @@ static ULONG STDMETHODCALLTYPE rendertarget_view_Release(IWineD3DRendertargetVie
|
|||
|
||||
if (!refcount)
|
||||
{
|
||||
IWineD3DResource_Release(This->resource);
|
||||
IWineD3DResource_Release((IWineD3DResource *)This->resource);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
|
@ -88,8 +88,8 @@ static HRESULT STDMETHODCALLTYPE rendertarget_view_GetResource(IWineD3DRendertar
|
|||
{
|
||||
struct wined3d_rendertarget_view *This = (struct wined3d_rendertarget_view *)iface;
|
||||
|
||||
IWineD3DResource_AddRef(This->resource);
|
||||
*resource = This->resource;
|
||||
IWineD3DResource_AddRef((IWineD3DResource *)This->resource);
|
||||
*resource = (IWineD3DResource *)This->resource;
|
||||
|
||||
return WINED3D_OK;
|
||||
}
|
||||
|
@ -112,6 +112,6 @@ void wined3d_rendertarget_view_init(struct wined3d_rendertarget_view *view,
|
|||
view->vtbl = &wined3d_rendertarget_view_vtbl;
|
||||
view->refcount = 1;
|
||||
IWineD3DResource_AddRef((IWineD3DResource *)resource);
|
||||
view->resource = (IWineD3DResource *)resource;
|
||||
view->resource = resource;
|
||||
view->parent = parent;
|
||||
}
|
||||
|
|
|
@ -2569,7 +2569,7 @@ struct wined3d_rendertarget_view
|
|||
const struct IWineD3DRendertargetViewVtbl *vtbl;
|
||||
LONG refcount;
|
||||
|
||||
IWineD3DResource *resource;
|
||||
struct IWineD3DResourceImpl *resource;
|
||||
void *parent;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue