d3d10core: Implement d3d10_rendertarget_view_SetPrivateData().
This commit is contained in:
parent
c3fab65647
commit
3c65bff802
|
@ -154,6 +154,7 @@ struct d3d10_rendertarget_view
|
|||
ID3D10RenderTargetView ID3D10RenderTargetView_iface;
|
||||
LONG refcount;
|
||||
|
||||
struct wined3d_private_store private_store;
|
||||
struct wined3d_rendertarget_view *wined3d_view;
|
||||
D3D10_RENDER_TARGET_VIEW_DESC desc;
|
||||
ID3D10Resource *resource;
|
||||
|
|
|
@ -652,6 +652,7 @@ static ULONG STDMETHODCALLTYPE d3d10_rendertarget_view_Release(ID3D10RenderTarge
|
|||
wined3d_rendertarget_view_decref(This->wined3d_view);
|
||||
ID3D10Resource_Release(This->resource);
|
||||
ID3D10Device1_Release(This->device);
|
||||
wined3d_private_store_cleanup(&This->private_store);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
|
@ -682,10 +683,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_GetPrivateData(ID3D10Re
|
|||
static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_SetPrivateData(ID3D10RenderTargetView *iface,
|
||||
REFGUID guid, UINT data_size, const void *data)
|
||||
{
|
||||
FIXME("iface %p, guid %s, data_size %u, data %p stub!\n",
|
||||
struct d3d10_rendertarget_view *view = impl_from_ID3D10RenderTargetView(iface);
|
||||
|
||||
TRACE("iface %p, guid %s, data_size %u, data %p.\n",
|
||||
iface, debugstr_guid(guid), data_size, data);
|
||||
|
||||
return E_NOTIMPL;
|
||||
return d3d10_set_private_data(&view->private_store, guid, data_size, data);
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_SetPrivateDataInterface(ID3D10RenderTargetView *iface,
|
||||
|
@ -836,6 +839,7 @@ HRESULT d3d10_rendertarget_view_init(struct d3d10_rendertarget_view *view, struc
|
|||
return hr;
|
||||
}
|
||||
|
||||
wined3d_private_store_init(&view->private_store);
|
||||
view->resource = resource;
|
||||
ID3D10Resource_AddRef(resource);
|
||||
view->device = &device->ID3D10Device1_iface;
|
||||
|
|
Loading…
Reference in New Issue