summaryrefslogtreecommitdiffstats
path: root/modules/glslang/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/glslang/config.py')
-rw-r--r--modules/glslang/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/glslang/config.py b/modules/glslang/config.py
index d22f9454ed..1169776a73 100644
--- a/modules/glslang/config.py
+++ b/modules/glslang/config.py
@@ -1,5 +1,7 @@
def can_build(env, platform):
- return True
+ # glslang is only needed when Vulkan or Direct3D 12-based renderers are available,
+ # as OpenGL doesn't use glslang.
+ return env["vulkan"] or env["d3d12"]
def configure(env):