diff options
Diffstat (limited to 'tests/auto/quick/qquickrendercontrol')
-rw-r--r-- | tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp index 44c568068d..c879684592 100644 --- a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp +++ b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp @@ -51,6 +51,8 @@ #include <QVulkanFunctions> #endif +#include <QOperatingSystemVersion> + class AnimationDriver : public QAnimationDriver { public: @@ -124,7 +126,8 @@ void tst_RenderControl::renderAndReadBackWithRhi_data() QTest::newRow("Vulkan") << QSGRendererInterface::VulkanRhi; #endif #ifdef Q_OS_WIN - QTest::newRow("D3D11") << QSGRendererInterface::Direct3D11Rhi; + if (QOperatingSystemVersion::current() > QOperatingSystemVersion::Windows7) + QTest::newRow("D3D11") << QSGRendererInterface::Direct3D11Rhi; #endif #if defined(Q_OS_MACOS) || defined(Q_OS_IOS) QTest::newRow("Metal") << QSGRendererInterface::MetalRhi; |