summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;