浏览代码

Merge pull request #91684 from Chubercik/embree4_aftermath

Fix `builtin_embree=no` build linking the wrong version of Embree
Rémi Verschelde 1 年之前
父节点
当前提交
17a81260cb
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      core/math/static_raycaster.h
  2. 1 1
      platform/linuxbsd/detect.py
  3. 1 1
      scene/3d/lightmapper.h

+ 1 - 1
core/math/static_raycaster.h

@@ -49,7 +49,7 @@ protected:
 	static StaticRaycaster *(*create_function)();
 
 public:
-	// compatible with embree3 rays
+	// Compatible with embree4 rays.
 	struct __aligned(16) Ray {
 		const static unsigned int INVALID_GEOMETRY_ID = ((unsigned int)-1); // from rtcore_common.h
 

+ 1 - 1
platform/linuxbsd/detect.py

@@ -309,7 +309,7 @@ def configure(env: "SConsEnvironment"):
 
     if not env["builtin_embree"] and env["arch"] in ["x86_64", "arm64"]:
         # No pkgconfig file so far, hardcode expected lib name.
-        env.Append(LIBS=["embree3"])
+        env.Append(LIBS=["embree4"])
 
     if not env["builtin_openxr"]:
         env.ParseConfig("pkg-config openxr --cflags --libs")

+ 1 - 1
scene/3d/lightmapper.h

@@ -61,7 +61,7 @@ protected:
 	static LightmapRaycaster *(*create_function)();
 
 public:
-	// compatible with embree3 rays
+	// Compatible with embree4 rays.
 	struct __aligned(16) Ray {
 		const static unsigned int INVALID_GEOMETRY_ID = ((unsigned int)-1); // from rtcore_common.h