diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-08-30 16:06:29 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-08-30 17:45:02 +0200 |
commit | 8641d5d729370b14f817a9e33446c38ace710429 (patch) | |
tree | bd4e9b5e1cc04f56d0205f7465a5ee3504a7ee94 /src/gui/rhi/qrhigles2.cpp | |
parent | 9390edb119d28d18de6e38585f9160bb99b17fb6 (diff) |
rhi: gl: Correctly report WideLines for OpenGL
In core profile contexts a line width other than 1 may not work
as expected since it is deprecated in the core profile.
Change-Id: I3fc33cf90c65156aa87d04f08518c9ddcfb62625
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhigles2.cpp')
-rw-r--r-- | src/gui/rhi/qrhigles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp index cd72a44b60..f8a63d482f 100644 --- a/src/gui/rhi/qrhigles2.cpp +++ b/src/gui/rhi/qrhigles2.cpp @@ -887,7 +887,7 @@ bool QRhiGles2::isFeatureSupported(QRhi::Feature feature) const case QRhi::Compute: return caps.compute; case QRhi::WideLines: - return true; + return !caps.coreProfile; case QRhi::VertexShaderPointSize: return true; case QRhi::BaseVertex: |