From ba38a3e2e68977d4a109fdf049b774b75146320a Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 4 Aug 2020 22:56:59 -0700 Subject: Fixed IDXGISwapChain2 issue on Windows 7 (closed https://github.com/DiligentGraphics/DiligentEngine/issues/95). --- Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.hpp | 4 ++-- Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineD3D11') diff --git a/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.hpp b/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.hpp index 0c36c5d3..209d5d4c 100644 --- a/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.hpp +++ b/Graphics/GraphicsEngineD3D11/include/SwapChainD3D11Impl.hpp @@ -37,10 +37,10 @@ namespace Diligent { /// Swap chain implementation in Direct3D11 backend. -class SwapChainD3D11Impl final : public SwapChainD3DBase +class SwapChainD3D11Impl final : public SwapChainD3DBase { public: - using TSwapChainBase = SwapChainD3DBase; + using TSwapChainBase = SwapChainD3DBase; SwapChainD3D11Impl(IReferenceCounters* pRefCounters, const SwapChainDesc& SCDesc, diff --git a/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp index e73bec3a..4647ba13 100644 --- a/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp @@ -57,7 +57,7 @@ static CComPtr DXGIAdapterFromD3D11Device(ID3D11Device* pd3d11Dev if (SUCCEEDED(hr)) { CComPtr pDXGIAdapter1; - pDXGIAdapter->QueryInterface(__uuidof(pDXGIAdapter1), reinterpret_cast(static_cast(&pDXGIAdapter1))); + pDXGIAdapter.QueryInterface(&pDXGIAdapter1); return pDXGIAdapter1; } else -- cgit v1.2.3