diff options
author | Dave Parks <davep@lindenlab.com> | 2023-01-11 16:20:35 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-01-11 16:20:35 -0600 |
commit | ccedb5a6de62b339255898abc9b9faf0d2e4e132 (patch) | |
tree | c19450a468d34ef97b221ddca10dc39c86aca431 /indra/llrender | |
parent | b9a4d81d5140b34199a6582b1189473b6a2e72fb (diff) | |
parent | 3e1afc3c917e655e8fd91a3b4b369c95a44ad981 (diff) |
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llrender.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 02942eb292..bba6a46e43 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -1677,7 +1677,7 @@ void LLRender::flush() // To leverage this, we maintain a running hash of the vertex stream being // built up before a flush, and then check that hash against a VB // cache just before creating a vertex buffer in VRAM - auto& cache = sVBCache.find(vhash[0]); + std::unordered_map<std::size_t, LLVBCache>::iterator cache = sVBCache.find(vhash[0]); LLPointer<LLVertexBuffer> vb; @@ -1719,7 +1719,7 @@ void LLRender::flush() using namespace std::chrono_literals; // every 1024 misses, clean the cache of any VBs that haven't been touched in the last second - for (auto& iter = sVBCache.begin(); iter != sVBCache.end(); ) + for (std::unordered_map<std::size_t, LLVBCache>::iterator iter = sVBCache.begin(); iter != sVBCache.end(); ) { if (now - iter->second.touched > 1s) { |