Skip to content

Commit 3191e8e

Browse files
committed
Fixed non-embree builds
1 parent 32d3312 commit 3191e8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

RadeonRays/src/api/radeon_rays.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,14 @@ namespace RadeonRays
289289
{
290290
if (s_calc_platform == DeviceInfo::kEmbree)
291291
{
292-
IntersectionApi* api = IntersectionApi::Create(0);
292+
IntersectionApi* api = nullptr;
293+
#ifdef USE_EMBREE
294+
api = IntersectionApi::Create(0);
293295
if (!api)
294296
return nullptr;
295297
EmbreeIntersectionDevice* device = static_cast<EmbreeIntersectionDevice*>(static_cast<IntersectionApiImpl*>(api)->GetDevice());
296298
device->SetCommandQueue(queue);
299+
#endif
297300
return api;
298301
}
299302

0 commit comments

Comments
 (0)