mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Deliberately leak android tool cache so it doesn't go out of scope
* We need this to survive until shutdown, and global destruction order is undefined.
This commit is contained in:
@@ -157,8 +157,8 @@ struct ToolPathCache
|
||||
|
||||
static ToolPathCache &getCache()
|
||||
{
|
||||
static ToolPathCache cache;
|
||||
return cache;
|
||||
static ToolPathCache *cache = new ToolPathCache;
|
||||
return *cache;
|
||||
}
|
||||
|
||||
std::string getToolPath(ToolDir subdir, const std::string &toolname, bool checkExist)
|
||||
|
||||
Reference in New Issue
Block a user