diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-09-26 14:14:27 +0200 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2024-09-27 13:34:29 +0200 |
commit | e36452483744b41c4af7f5ac2240083b1cba0738 (patch) | |
tree | 5236e65913bec33b578622831454639f19e957a8 /indra/llmath | |
parent | 813a97c0ab820edaf5ab0fae942c55f1d4b8a36f (diff) |
#2674 Optimize LLWorld::renderPropertyLines() - use vertexBatchPreTransformed()
Diffstat (limited to 'indra/llmath')
-rw-r--r-- | indra/llmath/v3math.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/llmath/v3math.h b/indra/llmath/v3math.h index d063b15c74..4fc7585a46 100644 --- a/indra/llmath/v3math.h +++ b/indra/llmath/v3math.h @@ -459,10 +459,17 @@ inline const LLVector3& operator*=(LLVector3 &a, const LLVector3 &b) inline const LLVector3& operator/=(LLVector3 &a, F32 k) { - F32 t = 1.f / k; - a.mV[0] *= t; - a.mV[1] *= t; - a.mV[2] *= t; + a.mV[0] /= k; + a.mV[1] /= k; + a.mV[2] /= k; + return a; +} + +inline const LLVector3& operator/=(LLVector3& a, const LLVector3& b) +{ + a.mV[0] /= b.mV[0]; + a.mV[1] /= b.mV[1]; + a.mV[2] /= b.mV[2]; return a; } |