Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openpgl/data/PathSegmentDataStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct PathSegmentDataStorage
PathSegmentData *next()
{
#if defined(OPENPGL_PATHSEGMENT_STORAGE_USE_ARRAY)
if (m_seg_idx + 1 <= m_max_seg_size)
if (m_seg_idx + 1 < m_max_seg_size)
{
m_seg_idx++;
m_segmentStorage[m_seg_idx] = PathSegmentData();
Expand All @@ -146,7 +146,7 @@ struct PathSegmentDataStorage
void addSegment(const PGLPathSegmentData &segment)
{
#if defined(OPENPGL_PATHSEGMENT_STORAGE_USE_ARRAY)
if (m_seg_idx + 1 <= m_max_seg_size)
if (m_seg_idx + 1 < m_max_seg_size)
{
m_seg_idx++;
m_segmentStorage[m_seg_idx] = segment;
Expand All @@ -159,7 +159,7 @@ struct PathSegmentDataStorage
void push_back(const PathSegmentData &psData)
{
#if defined(OPENPGL_PATHSEGMENT_STORAGE_USE_ARRAY)
if (m_seg_idx + 1 <= m_max_seg_size)
if (m_seg_idx + 1 < m_max_seg_size)
{
m_seg_idx++;
m_segmentStorage[m_seg_idx] = psData;
Expand Down
2 changes: 1 addition & 1 deletion openpgl/field/Field.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ struct Field
void estimateSceneBounds(const SampleContainerInternal &samples)
{
m_sceneBounds.lower = Vector3(std::numeric_limits<float>::max());
m_sceneBounds.upper = Vector3(std::numeric_limits<float>::min());
m_sceneBounds.upper = Vector3(-std::numeric_limits<float>::max());
m_isSceneBoundsSet = false;

if (samples.size() > 0)
Expand Down
3 changes: 3 additions & 0 deletions superbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ option(DOWNLOAD_ISPC "Download ISPC or use the one found in the system environme

if (BUILD_TBB)
set(TBB_VERSION "2021.13.0" CACHE STRING "TBB version to download")
if(APPLE)
set(BUILD_TBB_FROM_SOURCE ON)
endif()
if (BUILD_TBB_FROM_SOURCE)
if (TBB_VERSION VERSION_LESS 2021)
message(FATAL_ERROR "Only TBB 2021 and later are supported when building TBB from source")
Expand Down
Loading