Skip to content

Commit

Permalink
[WIP] compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
freibold committed Nov 4, 2024
1 parent 9d6d3b6 commit cc422ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion kernels/common/scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ namespace embree

template<typename Mesh>
__forceinline Mesh* getSafe(size_t i) {
if (geometries_device[i] == null) return nullptr;
if (geometries_device[i] == nullptr) return nullptr;
if (!(geometries_device[i]->getTypeMask() & Mesh::geom_type)) return nullptr;
else return (Mesh*) geometries_device[i];
}
Expand Down
2 changes: 0 additions & 2 deletions kernels/common/scene_triangle_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ namespace embree
return madd(Vec3fa(t0),v0,t1*v1);
}

#if !defined(__SYCL_DEVICE_ONLY__)
/*! calculates the bounds of the i'th triangle */
__forceinline BBox3fa bounds(size_t i) const
{
Expand Down Expand Up @@ -271,7 +270,6 @@ namespace embree
bool topologyChanged(unsigned int otherVersion) const {
return triangles.isModified(otherVersion); // || numPrimitivesChanged;
}
#endif // !defined(__SYCL_DEVICE_ONLY__)

/* returns the projected area */
__forceinline float projectedPrimitiveArea(const size_t i) const {
Expand Down

0 comments on commit cc422ef

Please sign in to comment.