dxgi: Implement IDXGIAdapter::GetParent().
This commit is contained in:
parent
ba532a3edb
commit
5ee7536448
|
@ -99,9 +99,11 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetPrivateData(IWineDXGIAdapter *i
|
|||
|
||||
static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetParent(IWineDXGIAdapter *iface, REFIID riid, void **parent)
|
||||
{
|
||||
FIXME("iface %p, riid %s, parent %p stub!\n", iface, debugstr_guid(riid), parent);
|
||||
struct dxgi_adapter *This = (struct dxgi_adapter *)iface;
|
||||
|
||||
return E_NOTIMPL;
|
||||
TRACE("iface %p, riid %s, parent %p\n", iface, debugstr_guid(riid), parent);
|
||||
|
||||
return IDXGIFactory_QueryInterface(This->parent, riid, parent);
|
||||
}
|
||||
|
||||
/* IDXGIAdapter methods */
|
||||
|
|
|
@ -126,6 +126,7 @@ HRESULT WINAPI CreateDXGIFactory(REFIID riid, void **factory)
|
|||
adapter->vtbl = &dxgi_adapter_vtbl;
|
||||
adapter->refcount = 1;
|
||||
adapter->ordinal = i;
|
||||
adapter->parent = (IDXGIFactory *)object;
|
||||
object->adapters[i] = (IDXGIAdapter *)adapter;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ extern const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl;
|
|||
struct dxgi_adapter
|
||||
{
|
||||
const struct IWineDXGIAdapterVtbl *vtbl;
|
||||
IDXGIFactory *parent;
|
||||
LONG refcount;
|
||||
UINT ordinal;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue