summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhid3d11.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2022-04-21 12:43:39 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2022-04-22 14:34:46 +0200
commit4f2b4e0e5ef021864ceb05299ebf67f9751777d2 (patch)
treea69a2b65a6624f662067403d2c085e4e89faaab7 /src/gui/rhi/qrhid3d11.cpp
parent7fa2a1a479e961edbc1e5f0009c1ac5d2a6a1a06 (diff)
rhi: Add a feature flag for non-fill polygon modes
It's one thing that this is not part of OpenGL ES, but it is optional even with Vulkan, with some mobile GPUs not offering the feature at all. Change-Id: I4e2c6642eccb0793e69074b4b6eeb2b7cef3516e Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhid3d11.cpp')
-rw-r--r--src/gui/rhi/qrhid3d11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp
index f6e07f347e..c90dbd6e7d 100644
--- a/src/gui/rhi/qrhid3d11.cpp
+++ b/src/gui/rhi/qrhid3d11.cpp
@@ -576,6 +576,8 @@ bool QRhiD3D11::isFeatureSupported(QRhi::Feature feature) const
return false;
case QRhi::TextureArrayRange:
return true;
+ case QRhi::NonFillPolygonMode:
+ return true;
default:
Q_UNREACHABLE();
return false;