From 888016a53f4ac4378ea33463ee9e6516b7b6190c Mon Sep 17 00:00:00 2001 From: Hatem ElKharashy Date: Thu, 28 Sep 2023 17:23:42 +0300 Subject: [PATCH] Fix compilation error for QRhi stereo manual test Add a guard to prevent compilation error on non-Windows platform Change-Id: Ibe0d74c1dfe3d4656addeb80c702b6e254d37d84 Reviewed-by: Laszlo Agocs Reviewed-by: Kristoffer Skau --- tests/manual/rhi/stereo/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/manual/rhi/stereo/window.cpp b/tests/manual/rhi/stereo/window.cpp index 9679fca1df..3b4e599656 100644 --- a/tests/manual/rhi/stereo/window.cpp +++ b/tests/manual/rhi/stereo/window.cpp @@ -93,6 +93,7 @@ void Window::init() m_rhi.reset(QRhi::create(QRhi::OpenGLES2, ¶ms, rhiFlags)); break; } +#ifdef Q_OS_WIN case QRhi::D3D11: { QRhiD3D11InitParams params; @@ -106,6 +107,7 @@ void Window::init() m_rhi.reset(QRhi::create(QRhi::D3D12, ¶ms, rhiFlags)); break; } +#endif default: break; }