diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2022-12-13 20:51:27 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2022-12-13 20:51:27 -0500 |
commit | d4822f10142887daa9ef2d5575a2c2e1bb24b389 (patch) | |
tree | 3b0b66779887ce2dcc3b2d027ce9b9d68c145d3b /indra/newview/lltexturecache.cpp | |
parent | 424d3ef83cdb354e66789f22f65394f4db523128 (diff) | |
parent | 9e7829c9cb140f994c9aa12dddcd4518c4c43a40 (diff) |
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
-rw-r--r-- | indra/newview/lltexturecache.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 8b79c7d911..d873f5524f 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1592,6 +1592,12 @@ void LLTextureCache::purgeAllTextures(bool purge_directories) { gDirUtilp->deleteFilesInDir(dirname, mask); } +#if LL_WINDOWS + // Texture cache can be large and can take a while to remove + // assure OS that processes is alive and not hanging + MSG msg; + PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE | PM_NOYIELD); +#endif } gDirUtilp->deleteFilesInDir(mTexturesDirName, mask); // headers, fast cache if (purge_directories) |