summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhid3d11_p_p.h
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2022-11-01 16:51:06 +0800
committerYuhang Zhao <2546789017@qq.com>2022-11-03 12:03:29 +0800
commit17b542c2d2545924f4d36f6705352e5b2489aa10 (patch)
tree6746537e7814a46f7edf3878b1e47293a98351c0 /src/gui/rhi/qrhid3d11_p_p.h
parent3a8980304f313bc82f0a079bc0239172036ba3ea (diff)
D3D11Rhi: change default swap effect to FLIP_DISCARD
The original comments are misreading Microsoft documents. It seems Microsoft uses FLIP_SEQUENTIAL to refer to the flip model, not just FLIP_SEQUENTIAL itself. And according to my experiments, DXGI_SCALING_NONE can be used with FLIP_DISCARD indeed. The swap chain can be created successfully and I didn't get any failed HRESULTs. So there's no need to use FLIP_SEQUENTIAL as the default swap effect anymore. Let's change it back to FLIP_DISCARD. Change-Id: I6001e2070d3ff00268299e81f6a310394e62c464 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhid3d11_p_p.h')
-rw-r--r--src/gui/rhi/qrhid3d11_p_p.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhid3d11_p_p.h b/src/gui/rhi/qrhid3d11_p_p.h
index 96c7818ee9..857ab2a2aa 100644
--- a/src/gui/rhi/qrhid3d11_p_p.h
+++ b/src/gui/rhi/qrhid3d11_p_p.h
@@ -737,7 +737,6 @@ public:
IDXGIFactory1 *dxgiFactory = nullptr;
IDCompositionDevice *dcompDevice = nullptr;
bool supportsAllowTearing = false;
- bool forceFlipDiscard = false;
bool deviceLost = false;
QRhiD3D11NativeHandles nativeHandlesStruct;
QRhiDriverInfo driverInfoStruct;