diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-04-19 01:03:27 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-04-19 01:06:35 +0300 |
commit | 9b5615647dc5053769af4fcf18b5805ffa89c50b (patch) | |
tree | 724f1c05bf4ed552c3e364e27fb55d6d0d97fa38 | |
parent | bc93177ea0788a245554882b6d721eae2e057206 (diff) |
viewer#1081 removed a 'not finalized' part of 2K benefits
This part isn't planned at the moment, at least not this way, remove to
not cause issues once server side changes behavior
-rw-r--r-- | indra/newview/llagentbenefits.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/indra/newview/llagentbenefits.cpp b/indra/newview/llagentbenefits.cpp index 29b0a4612f..0717d92ea7 100644 --- a/indra/newview/llagentbenefits.cpp +++ b/indra/newview/llagentbenefits.cpp @@ -201,19 +201,6 @@ S32 LLAgentBenefits::get2KTextureUploadCost(S32 area) const { return m_texture_upload_cost; } - const S32 TEXTURE_SEGMENTS = 1024; - if (m_2k_texture_upload_cost.size() == TEXTURE_SEGMENTS) - { - S32 index = (S32)llceil(sqrt((F32)area)); - // 1..1024 pixels uses m_texture_upload_cost - // 1025..2048 uses m_2k_texture_upload_cost - // Translate 1025..2048 to 0..1023 of the - // cost array - const S32 PIXELS_TO_2K_ARRAY_TRANLATE = 1025; - index -= PIXELS_TO_2K_ARRAY_TRANLATE; - index = llclamp(index, 0, TEXTURE_SEGMENTS - 1); - return m_2k_texture_upload_cost[index]; - } return m_2k_texture_upload_cost[0]; } |