Commit 098cdf4a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Store an IWineD3DResourceImpl pointer in struct wined3d_rendertarget_view.

parent e42e5247
......@@ -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;
};
......
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