aports/testing/godot/glslang.patch
2024-09-04 21:37:47 +00:00

15 lines
613 B
Diff

Fix compilation with builtin_glslang=false
Ref https://github.com/godotengine/godot/pull/93478
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -480,7 +480,7 @@ def configure(env: "SConsEnvironment"):
env.ParseConfig("pkg-config vulkan --cflags --libs")
if not env["builtin_glslang"]:
# No pkgconfig file so far, hardcode expected lib name.
- env.Append(LIBS=["glslang", "SPIRV"])
+ env.Append(LIBS=["glslang", "SPIRV", "glslang-default-resource-limits"])
if env["opengl3"]:
env.Append(CPPDEFINES=["GLES3_ENABLED"])