From 2c008d6faf2334beb252cce340ee81b1cea50482 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 28 Jan 2022 11:29:16 +0100 Subject: rhi: d3d11: Try uuidof instead of IID_* to help old MinGW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-100294 Pick-to: 6.3 Change-Id: Iee90355ecd48a753f9a7ec53e7f5758e3d12eddf Reviewed-by: Christian Strømme --- src/gui/rhi/qrhid3d11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/rhi/qrhid3d11.cpp') diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp index 28c42a293d..41898ecace 100644 --- a/src/gui/rhi/qrhid3d11.cpp +++ b/src/gui/rhi/qrhid3d11.cpp @@ -217,7 +217,7 @@ bool QRhiD3D11::create(QRhi::Flags flags) // sufficient to get non-blocking behavior, try using ALLOW_TEARING // when available. IDXGIFactory5 *factory5 = nullptr; - if (SUCCEEDED(dxgiFactory->QueryInterface(IID_IDXGIFactory5, reinterpret_cast(&factory5)))) { + if (SUCCEEDED(dxgiFactory->QueryInterface(__uuidof(IDXGIFactory5), reinterpret_cast(&factory5)))) { BOOL allowTearing = false; if (SUCCEEDED(factory5->CheckFeatureSupport(DXGI_FEATURE_PRESENT_ALLOW_TEARING, &allowTearing, sizeof(allowTearing)))) supportsAllowTearing = allowTearing; -- cgit v1.2.3