Fix T97498, T97651: crash in Cycles with TBB 2021 after recent changes
This commit is contained in:
@@ -34,7 +34,9 @@ static inline void thread_capture_fp_settings()
|
|||||||
#else
|
#else
|
||||||
tbb::task_group_context *ctx = tbb::task::self().group();
|
tbb::task_group_context *ctx = tbb::task::self().group();
|
||||||
#endif
|
#endif
|
||||||
|
if (ctx) {
|
||||||
ctx->capture_fp_settings();
|
ctx->capture_fp_settings();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void parallel_for_cancel()
|
static inline void parallel_for_cancel()
|
||||||
|
Reference in New Issue
Block a user