wined3d: Pass an IWineD3DResourceImpl pointer to wined3d_rendertarget_view_init().

This commit is contained in:
Henri Verbeet 2011-01-17 18:49:29 +01:00 committed by Alexandre Julliard
parent 2ceb2a8cdd
commit e42e5247dd
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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)