aports/testing/godot/glslang.patch
2024-06-26 04:14:03 +00:00

27 lines
1010 B
Diff

Fix compilation with builtin_glslang=false
Ref https://github.com/godotengine/godot/pull/93478
Ref https://github.com/godotengine/godot/pull/93471
--- a/modules/glslang/register_types.cpp
+++ b/modules/glslang/register_types.cpp
@@ -33,7 +33,6 @@
#include "core/config/engine.h"
#include "servers/rendering/rendering_device.h"
-#include <glslang/Include/Types.h>
#include <glslang/Public/ResourceLimits.h>
#include <glslang/Public/ShaderLang.h>
#include <glslang/SPIRV/GlslangToSpv.h>
--- 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"])