diff options
| author | Yuhang Zhao <2546789017@qq.com> | 2022-11-01 16:51:06 +0800 |
|---|---|---|
| committer | Yuhang Zhao <2546789017@qq.com> | 2022-11-03 12:03:29 +0800 |
| commit | 17b542c2d2545924f4d36f6705352e5b2489aa10 (patch) | |
| tree | 6746537e7814a46f7edf3878b1e47293a98351c0 /src/tools/uic/cpp/cppwritedeclaration.cpp | |
| parent | 3a8980304f313bc82f0a079bc0239172036ba3ea (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/tools/uic/cpp/cppwritedeclaration.cpp')
0 files changed, 0 insertions, 0 deletions
