dxgi: Implement dxgi_output_SetPrivateData().

This commit is contained in:
Henri Verbeet 2015-02-16 12:25:52 +01:00 committed by Alexandre Julliard
parent 00daa8bc64
commit 7e2423e16a
2 changed files with 7 additions and 2 deletions

View File

@ -119,6 +119,7 @@ struct dxgi_output
{ {
IDXGIOutput IDXGIOutput_iface; IDXGIOutput IDXGIOutput_iface;
LONG refcount; LONG refcount;
struct wined3d_private_store private_store;
struct dxgi_adapter *adapter; struct dxgi_adapter *adapter;
}; };

View File

@ -68,6 +68,7 @@ static ULONG STDMETHODCALLTYPE dxgi_output_Release(IDXGIOutput *iface)
if (!refcount) if (!refcount)
{ {
wined3d_private_store_cleanup(&This->private_store);
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);
} }
@ -79,9 +80,11 @@ static ULONG STDMETHODCALLTYPE dxgi_output_Release(IDXGIOutput *iface)
static HRESULT STDMETHODCALLTYPE dxgi_output_SetPrivateData(IDXGIOutput *iface, static HRESULT STDMETHODCALLTYPE dxgi_output_SetPrivateData(IDXGIOutput *iface,
REFGUID guid, UINT data_size, const void *data) REFGUID guid, UINT data_size, const void *data)
{ {
FIXME("iface %p, guid %s, data_size %u, data %p stub!\n", iface, debugstr_guid(guid), data_size, data); struct dxgi_output *output = impl_from_IDXGIOutput(iface);
return E_NOTIMPL; TRACE("iface %p, guid %s, data_size %u, data %p.\n", iface, debugstr_guid(guid), data_size, data);
return dxgi_set_private_data(&output->private_store, guid, data_size, data);
} }
static HRESULT STDMETHODCALLTYPE dxgi_output_SetPrivateDataInterface(IDXGIOutput *iface, static HRESULT STDMETHODCALLTYPE dxgi_output_SetPrivateDataInterface(IDXGIOutput *iface,
@ -289,5 +292,6 @@ void dxgi_output_init(struct dxgi_output *output, struct dxgi_adapter *adapter)
{ {
output->IDXGIOutput_iface.lpVtbl = &dxgi_output_vtbl; output->IDXGIOutput_iface.lpVtbl = &dxgi_output_vtbl;
output->refcount = 1; output->refcount = 1;
wined3d_private_store_init(&output->private_store);
output->adapter = adapter; output->adapter = adapter;
} }