From 4f2b4e0e5ef021864ceb05299ebf67f9751777d2 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 21 Apr 2022 12:43:39 +0200 Subject: rhi: Add a feature flag for non-fill polygon modes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gui/rhi/qrhid3d11.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/rhi/qrhid3d11.cpp') 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; -- cgit v1.2.3