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/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp b/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp index 1b61a393..74a69136 100644 --- a/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp +++ b/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp @@ -295,7 +295,7 @@ void EngineFactoryD3D12Impl::CreateDeviceAndContextsD3D12(const EngineD3D12Creat if (EngineCI.EnableDebugLayer) { CComPtr pInfoQueue; - hr = d3d12Device->QueryInterface(__uuidof(pInfoQueue), reinterpret_cast(static_cast(&pInfoQueue))); + hr = d3d12Device.QueryInterface(&pInfoQueue); if (SUCCEEDED(hr)) { // Suppress whole categories of messages -- cgit v1.2.3