Fix T97498, T97651: crash in Cycles with TBB 2021 after recent changes

This commit is contained in:
Brecht Van Lommel
2022-04-28 00:21:31 +02:00
parent 0539208f97
commit 3558f565f1

View File

@@ -34,8 +34,10 @@ static inline void thread_capture_fp_settings()
#else
tbb::task_group_context *ctx = tbb::task::self().group();
#endif
if (ctx) {
ctx->capture_fp_settings();
}
}
static inline void parallel_for_cancel()
{