mirror of
https://github.com/reactos/wine.git
synced 2025-01-27 06:53:49 +00:00
d3d11: Use the IUnknown implementation from the d3d11 interface.
Mostly just for consistency with other D3D code.
This commit is contained in:
parent
b87eb8d947
commit
2edc9584ba
@ -44,16 +44,16 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_inner_QueryInterface(IUnknown *ifa
|
||||
|
||||
TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
|
||||
|
||||
if (IsEqualGUID(riid, &IID_ID3D10Device1)
|
||||
|| IsEqualGUID(riid, &IID_ID3D10Device)
|
||||
if (IsEqualGUID(riid, &IID_ID3D11Device)
|
||||
|| IsEqualGUID(riid, &IID_IUnknown))
|
||||
{
|
||||
*out = &device->ID3D10Device1_iface;
|
||||
}
|
||||
else if (IsEqualGUID(riid, &IID_ID3D11Device))
|
||||
{
|
||||
*out = &device->ID3D11Device_iface;
|
||||
}
|
||||
else if (IsEqualGUID(riid, &IID_ID3D10Device1)
|
||||
|| IsEqualGUID(riid, &IID_ID3D10Device))
|
||||
{
|
||||
*out = &device->ID3D10Device1_iface;
|
||||
}
|
||||
else if (IsEqualGUID(riid, &IID_ID3D10Multithread))
|
||||
{
|
||||
*out = &device->ID3D10Multithread_iface;
|
||||
|
Loading…
x
Reference in New Issue
Block a user