summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <mbrasser@ford.com>2020-10-21 08:39:00 -0500
committerMichael Brasser <mbrasser@ford.com>2020-10-23 07:31:23 -0500
commitf852aa731e3fdc79a4045425bc424fbbd3a4e50a (patch)
tree50fcd85512489f96a9c55e24e0f0e29b46b05b1d /src
parent4ab96961366a8486deed675b27cfbe243ffa2363 (diff)
Update QShaderFormat matching logic to account for RHI shader snippets
OpenGLCompatibility/NoProfile should not match RHI shader snippets. Task-number: QTBUG-85018 Change-Id: Id56656c7d6d64884092595d125e8f65178e5b9f8 Pick-to: 5.15 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/render/shadergraph/qshaderformat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/shadergraph/qshaderformat.cpp b/src/render/shadergraph/qshaderformat.cpp
index 98643fb24..81077b6f5 100644
--- a/src/render/shadergraph/qshaderformat.cpp
+++ b/src/render/shadergraph/qshaderformat.cpp
@@ -105,6 +105,9 @@ bool QShaderFormat::supports(const QShaderFormat &other) const noexcept
if (m_api == OpenGLCoreProfile && m_api != other.m_api)
return false;
+ if (m_api < VulkanFlavoredGLSL && other.m_api >= VulkanFlavoredGLSL)
+ return false;
+
if (m_version < other.m_version)
return false;