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,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()