Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-09-13 12:05:11 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-09-13 12:05:11 +0300
commitecbfa31caaadb03c53c0fe1459718b99613c8804 (patch)
tree634361d69f09b3857c37f2b1b1bc1a2876fc356d /intern
parent52038fd8c7dd7cece0cccd50cf09274abbdb14ba (diff)
Cycles: Tweak empty boundbox children
The idea here is to make assert failure to fail sooner on an incorrect node address rather than later with stack overflow.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/bvh/bvh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index 39b2a0cf436..bb326d48502 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -885,7 +885,7 @@ void QBVH::pack_aligned_node(int idx,
data[5][i] = FLT_MAX;
data[6][i] = -FLT_MAX;
- data[7][i] = __int_as_float(0);
+ data[7][i] = __int_as_float(INT_MAX);
}
memcpy(&pack.nodes[idx], data, sizeof(float4)*BVH_QNODE_SIZE);
@@ -968,7 +968,7 @@ void QBVH::pack_unaligned_node(int idx,
data[11][i] = -FLT_MAX;
data[12][i] = -FLT_MAX;
- data[13][i] = __int_as_float(0);
+ data[13][i] = __int_as_float(INT_MAX);
}
memcpy(&pack.nodes[idx], data, sizeof(float4)*BVH_UNALIGNED_QNODE_SIZE);