mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Only build glslang if Vulkan or Direct3D 12 rendering is enabled
glslang isn't needed for OpenGL rendering, which includes the web export. This reduces the web release export template's `.wasm` size by about 20 KB, since web builds use `vulkan=no`.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user