From 4df6aad0dfceda5e9c38a82af1d6dea457d3d892 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Mon, 26 Oct 2020 20:52:17 -0400
Subject: [PATCH] Small opt

---
 indra/newview/lldrawpoolterrain.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp
index b7f96410206..ab02ea17748 100644
--- a/indra/newview/lldrawpoolterrain.cpp
+++ b/indra/newview/lldrawpoolterrain.cpp
@@ -327,7 +327,7 @@ void LLDrawPoolTerrain::renderFullShader()
 //	LLViewerTexture *detail_texture2p = compp->mDetailTextures[2];
 //	LLViewerTexture *detail_texture3p = compp->mDetailTextures[3];
 
-	LLVector3d region_origin_global = gAgent.getRegion()->getOriginGlobal();
+	const LLVector3d& region_origin_global = gAgent.getRegion()->getOriginGlobal();
 	F32 offset_x = (F32)fmod(region_origin_global.mdV[VX], 1.0/(F64)sDetailScale)*sDetailScale;
 	F32 offset_y = (F32)fmod(region_origin_global.mdV[VY], 1.0/(F64)sDetailScale)*sDetailScale;
 
-- 
GitLab