d3d11rhi: remove leftover of pre-win10 code
Amends commit 1e085b9e15
Task-number: QTBUG-84432
Pick-to: 6.2
Change-Id: Id48fb6c2a9c7d24f1525975c6c154dbc323bbc25
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
parent
efb283fb7f
commit
00ea6f58da
|
|
@ -41,7 +41,6 @@
|
|||
#include "qshader_p.h"
|
||||
#include "cs_tdr_p.h"
|
||||
#include <QWindow>
|
||||
#include <QOperatingSystemVersion>
|
||||
#include <qmath.h>
|
||||
#include <private/qsystemlibrary_p.h>
|
||||
|
||||
|
|
@ -201,8 +200,7 @@ bool QRhiD3D11::create(QRhi::Flags flags)
|
|||
dxgiFactory = createDXGIFactory2();
|
||||
if (dxgiFactory != nullptr) {
|
||||
hasDxgi2 = true;
|
||||
supportsFlipDiscardSwapchain = QOperatingSystemVersion::current() >= QOperatingSystemVersion::Windows10
|
||||
&& !qEnvironmentVariableIntValue("QT_D3D_NO_FLIP");
|
||||
supportsFlipDiscardSwapchain = !qEnvironmentVariableIntValue("QT_D3D_NO_FLIP");
|
||||
} else {
|
||||
dxgiFactory = createDXGIFactory1();
|
||||
hasDxgi2 = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue