Cycles: Fix static initialization order fiasco
Initialization order of global stats and node types was not strictly defined and it was possible to have node types initialized first and stats after that. This will zero out memory which was allocated from the statistics causing assert failure when de-initializing node types.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
static Stats global_stats;
|
||||
static Stats global_stats(Stats::static_init);
|
||||
|
||||
/* Internal API. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user