diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-01-28 11:29:16 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-02-01 03:02:18 +0100 |
commit | 2c008d6faf2334beb252cce340ee81b1cea50482 (patch) | |
tree | 59009815178484475ae294dea9eb849fc6d62636 /src/gui/rhi/qrhid3d11.cpp | |
parent | aaa74e8f99c91bb877e5f3a8ee4a8b313d2fa133 (diff) |
rhi: d3d11: Try uuidof instead of IID_* to help old MinGW
Fixes: QTBUG-100294
Pick-to: 6.3
Change-Id: Iee90355ecd48a753f9a7ec53e7f5758e3d12eddf
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhid3d11.cpp')
-rw-r--r-- | src/gui/rhi/qrhid3d11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<void **>(&factory5)))) { + if (SUCCEEDED(dxgiFactory->QueryInterface(__uuidof(IDXGIFactory5), reinterpret_cast<void **>(&factory5)))) { BOOL allowTearing = false; if (SUCCEEDED(factory5->CheckFeatureSupport(DXGI_FEATURE_PRESENT_ALLOW_TEARING, &allowTearing, sizeof(allowTearing)))) supportsAllowTearing = allowTearing; |