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>
This commit is contained in:
parent
aaa74e8f99
commit
2c008d6faf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user