Henri Verbeet : d3d11: Use the IUnknown implementation from the d3d11 interface.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 25 09:38:02 CDT 2015
Module: wine
Branch: master
Commit: 2edc9584ba9bd95399e9bdeb2559ee54dede6fcb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2edc9584ba9bd95399e9bdeb2559ee54dede6fcb
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Aug 25 12:48:48 2015 +0200
d3d11: Use the IUnknown implementation from the d3d11 interface.
Mostly just for consistency with other D3D code.
---
dlls/d3d11/device.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 049989e..3a1b573 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -44,15 +44,15 @@ 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;
+ *out = &device->ID3D11Device_iface;
}
- else if (IsEqualGUID(riid, &IID_ID3D11Device))
+ else if (IsEqualGUID(riid, &IID_ID3D10Device1)
+ || IsEqualGUID(riid, &IID_ID3D10Device))
{
- *out = &device->ID3D11Device_iface;
+ *out = &device->ID3D10Device1_iface;
}
else if (IsEqualGUID(riid, &IID_ID3D10Multithread))
{
More information about the wine-cvs
mailing list