-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xrCore: g_pauseMngr variable refactored to function.
g_pauseMngr constructor calls reserve() on m_timers member, which requires dynamic memory allocation, which triggers xrMemory initialization. The point is that xrMemory relies on command line arguments, which we *can not* extract from main argc/argv pair, because g_pauseMngr constructor executed before main(). With g_pauseMngr being a function, we delay the manager construction to the first function call, which fixes the issue.
- Loading branch information
Showing
3 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters