wined3d: Pass an IWineD3DResourceImpl pointer to wined3d_rendertarget_view_init().
This commit is contained in:
parent
2ceb2a8cdd
commit
e42e5247dd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue