summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Marcowski <37378746+Chubercik@users.noreply.github.com>2024-05-08 00:26:40 +0200
committerJakub Marcowski <chubercikbattle@gmail.com>2024-05-08 00:40:45 +0200
commit7699d678c417945dda228c468731a1e3369dd88a (patch)
tree607849c066e6c236ddea1125e7a11ecb12d23a3d
parentec78dde7483fd1b9e70d9346f0753ccae1bc52d1 (diff)
downloadredot-engine-7699d678c417945dda228c468731a1e3369dd88a.tar.gz
Fix `builtin_embree=no` build linking the wrong version of Embree
-rw-r--r--core/math/static_raycaster.h2
-rw-r--r--platform/linuxbsd/detect.py2
-rw-r--r--scene/3d/lightmapper.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/math/static_raycaster.h b/core/math/static_raycaster.h
index c53868e12d..74e4b75163 100644
--- a/core/math/static_raycaster.h
+++ b/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
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index afc9d25a80..a8b8d2934a 100644
--- a/platform/linuxbsd/detect.py
+++ b/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")
diff --git a/scene/3d/lightmapper.h b/scene/3d/lightmapper.h
index 446ed794ed..521013d600 100644
--- a/scene/3d/lightmapper.h
+++ b/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