From 1fdd765ae8a3d7ce4859c6f29d780f3dc177f7e4 Mon Sep 17 00:00:00 2001 From: Louai Al-Khanji Date: Mon, 5 May 2014 09:26:31 +0300 Subject: [PATCH] Direct2D QPA: Fix DXGI Factory discovery magic On some Intel configurations the current DXGI discovery breaks. Fix this by adhering to Microsoft's guidelines for discovery of the DXGI factory: http://msdn.microsoft.com/en-us/library/windows/desktop/hh780339(v=vs.85).aspx Not querying the adapter directly as in the code snippet on the site above seems to have been a typo originally. Change-Id: Ibd7546462cdab7e5ad03db9abc16fe1615b631f4 Reviewed-by: Friedemann Kleint Reviewed-by: Andrew Knight --- src/plugins/platforms/direct2d/qwindowsdirect2dcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/direct2d/qwindowsdirect2dcontext.cpp b/src/plugins/platforms/direct2d/qwindowsdirect2dcontext.cpp index 58002fb0dd..80688a1da7 100644 --- a/src/plugins/platforms/direct2d/qwindowsdirect2dcontext.cpp +++ b/src/plugins/platforms/direct2d/qwindowsdirect2dcontext.cpp @@ -99,7 +99,7 @@ public: return false; } - hr = dxgiDevice->GetParent(IID_PPV_ARGS(&dxgiAdapter)); + hr = dxgiDevice->GetAdapter(&dxgiAdapter); if (FAILED(hr)) { qWarning("%s: Failed to probe DXGI Device for parent DXGI Adapter: %#x", __FUNCTION__, hr); return false;