From 1ff3b1ffa54db0f7aaca543e2565e1ac3087d1e0 Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Thu, 12 Jan 2023 19:49:35 +0200
Subject: MacOS build fix

---
 indra/llrender/llvertexbuffer.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'indra')

diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index c1ffe6957a..bc33591ed7 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -326,7 +326,7 @@ public:
 
         auto& pool = type == GL_ELEMENT_ARRAY_BUFFER ? mIBOPool : mVBOPool;
 
-        auto& iter = pool.find(size);
+        Pool::iterator iter = pool.find(size);
         if (iter == pool.end())
         { // cache miss, allocate a new buffer
             LL_PROFILE_ZONE_NAMED_CATEGORY_VERTEX("vbo pool miss");
@@ -374,7 +374,7 @@ public:
 
         auto& pool = type == GL_ELEMENT_ARRAY_BUFFER ? mIBOPool : mVBOPool;
 
-        auto& iter = pool.find(size);
+        Pool::iterator iter = pool.find(size);
 
         if (iter == pool.end())
         {
-- 
cgit v1.2.3