Fix constant reallocation of texture fetch command queue because...who..uses a vector..for a fifo...

By Rye, thanks!
This commit is contained in:
Liru Færs
2020-03-22 07:46:20 -04:00
parent 4871f5ed8e
commit c7e03600aa
2 changed files with 3 additions and 3 deletions

View File

@@ -2348,7 +2348,7 @@ LLTextureFetch::~LLTextureFetch()
while (! mCommands.empty())
{
TFRequest * req(mCommands.front());
mCommands.erase(mCommands.begin());
mCommands.pop_front();
delete req;
}
@@ -3367,7 +3367,7 @@ LLTextureFetch::TFRequest * LLTextureFetch::cmdDequeue()
if (! mCommands.empty())
{
ret = mCommands.front();
mCommands.erase(mCommands.begin());
mCommands.pop_front();
}
unlockQueue(); // -Mfq