summaryrefslogtreecommitdiff
path: root/thirdparty/embree/patches/godot-changes-ubsan.patch
blob: 1336246f0ddd5f54fc46d198e6469b814a9f6b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/thirdparty/embree/kernels/builders/primrefgen.cpp b/thirdparty/embree/kernels/builders/primrefgen.cpp
index bb4fc81dfe..d279dc4993 100644
--- a/thirdparty/embree/kernels/builders/primrefgen.cpp
+++ b/thirdparty/embree/kernels/builders/primrefgen.cpp
@@ -184,6 +184,9 @@ namespace embree
 
     // special variants for grid meshes
 
+// -- GODOT start --
+#if defined(EMBREE_GEOMETRY_GRID)
+// -- GODOT end --
     PrimInfo createPrimRefArrayGrids(Scene* scene, mvector<PrimRef>& prims, mvector<SubGridBuildData>& sgrids)
     {
       PrimInfo pinfo(empty);
@@ -293,6 +296,9 @@ namespace embree
 
       return pinfo;
     }
+// -- GODOT start --
+#endif
+// -- GODOT end --
     
     // ====================================================================================================
     // ====================================================================================================