From a1c36a3218a7fe6eb7b646e64c6bf9bc29b24886 Mon Sep 17 00:00:00 2001
From: Alexander Gavriliuk <gavriliuk@gmail.com>
Date: Fri, 5 Jan 2024 19:45:58 +0100
Subject: DRTVWR-489 MacOS Release build fix (vertex_count and index_count
 aren't used)

---
 indra/newview/llvotree.cpp | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'indra')

diff --git a/indra/newview/llvotree.cpp b/indra/newview/llvotree.cpp
index 36e6da802b..575b1dbe7e 100644
--- a/indra/newview/llvotree.cpp
+++ b/indra/newview/llvotree.cpp
@@ -865,6 +865,10 @@ BOOL LLVOTree::updateGeometry(LLDrawable *drawable)
 		mReferenceBuffer->unmapBuffer();
 		llassert(vertex_count == max_vertices);
 		llassert(index_count == max_indices);
+#ifndef SHOW_ASSERT
+        (void)vertex_count;
+        (void)index_count;
+#endif
 	}
 
 	//generate tree mesh
-- 
cgit v1.2.3