Commit e42e5247 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass an IWineD3DResourceImpl pointer to wined3d_rendertarget_view_init().

parent 2ceb2a8c
......@@ -1088,7 +1088,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateRendertargetView(IWineD3DDevice *
return E_OUTOFMEMORY;
}
wined3d_rendertarget_view_init(object, resource, parent);
wined3d_rendertarget_view_init(object, (IWineD3DResourceImpl *)resource, parent);
TRACE("Created render target view %p.\n", object);
*rendertarget_view = (IWineD3DRendertargetView *)object;
......
......@@ -107,11 +107,11 @@ static const struct IWineD3DRendertargetViewVtbl wined3d_rendertarget_view_vtbl
};
void wined3d_rendertarget_view_init(struct wined3d_rendertarget_view *view,
IWineD3DResource *resource, void *parent)
struct IWineD3DResourceImpl *resource, void *parent)
{
view->vtbl = &wined3d_rendertarget_view_vtbl;
view->refcount = 1;
IWineD3DResource_AddRef(resource);
view->resource = resource;
IWineD3DResource_AddRef((IWineD3DResource *)resource);
view->resource = (IWineD3DResource *)resource;
view->parent = parent;
}
......@@ -2574,7 +2574,7 @@ struct wined3d_rendertarget_view
};
void wined3d_rendertarget_view_init(struct wined3d_rendertarget_view *view,
IWineD3DResource *resource, void *parent) DECLSPEC_HIDDEN;
struct IWineD3DResourceImpl *resource, void *parent) DECLSPEC_HIDDEN;
/*****************************************************************************
* IWineD3DSwapChainImpl implementation structure (extends IUnknown)
......
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