@@ -100,7 +100,7 @@ namespace RadeonRays
100
100
{
101
101
if (m_intersector_string != " bvh2l" )
102
102
{
103
- m_intersector = std::make_unique< IntersectorTwoLevel> (m_device.get ());
103
+ m_intersector. reset ( new IntersectorTwoLevel (m_device.get () ));
104
104
m_intersector_string = " bvh2l" ;
105
105
}
106
106
}
@@ -114,7 +114,7 @@ namespace RadeonRays
114
114
{
115
115
if (m_intersector_string != " bvh" )
116
116
{
117
- m_intersector = std::make_unique< IntersectorSkipLinks> (m_device.get ());
117
+ m_intersector. reset ( new IntersectorSkipLinks (m_device.get () ));
118
118
m_intersector_string = " bvh" ;
119
119
}
120
120
}
@@ -126,7 +126,7 @@ namespace RadeonRays
126
126
m_intersector.reset(new IntersectorShortStack(m_device.get()));
127
127
m_intersector_string = "fatbvh";
128
128
#else
129
- m_intersector = std::make_unique< IntersectorLDS> (m_device.get ());
129
+ m_intersector. reset ( new IntersectorLDS (m_device.get () ));
130
130
m_intersector_string = " fatbvh" ;
131
131
#endif
132
132
}
@@ -135,15 +135,15 @@ namespace RadeonRays
135
135
{
136
136
if (m_intersector_string != " hlbvh" )
137
137
{
138
- m_intersector = std::make_unique< IntersectorHlbvh> (m_device.get ());
138
+ m_intersector. reset ( new IntersectorHlbvh (m_device.get () ));
139
139
m_intersector_string = " hlbvh" ;
140
140
}
141
141
}
142
142
/* else if (acctype == "hashbvh")
143
143
{
144
144
if (m_intersector_string != "hashbvh")
145
145
{
146
- m_intersector = std::make_unique< IntersectorBitTrail> (m_device.get());
146
+ m_intersector.reset(new IntersectorBitTrail(m_device.get() ));
147
147
m_intersector_string = "hashbvh";
148
148
}
149
149
}*/
0 commit comments