Skip to content

Commit

Permalink
Merge pull request #91684 from Chubercik/embree4_aftermath
Browse files Browse the repository at this point in the history
Fix `builtin_embree=no` build linking the wrong version of Embree
  • Loading branch information
akien-mga committed May 8, 2024
2 parents 4c30718 + 7699d67 commit 17a8126
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/math/static_raycaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class StaticRaycaster : public RefCounted {
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

Expand Down
2 changes: 1 addition & 1 deletion platform/linuxbsd/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/lightmapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class LightmapRaycaster : public RefCounted {
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

Expand Down

0 comments on commit 17a8126

Please sign in to comment.