summaryrefslogtreecommitdiff
path: root/indra/newview/llagentbenefits.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-03-29 01:30:16 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-04-01 19:30:51 +0300
commit18ef2e3b2ba5a6f0ac397fe6f0652c5b55bdaea8 (patch)
tree41849544b4751e3b92be64397553214b0d28c90a /indra/newview/llagentbenefits.h
parent43e605b8339105151fa7e97b27359d87479a3461 (diff)
viewer#1081 Account for 2K texture upload price in material and texture upload
Diffstat (limited to 'indra/newview/llagentbenefits.h')
-rw-r--r--indra/newview/llagentbenefits.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llagentbenefits.h b/indra/newview/llagentbenefits.h
index 48aa6bd869..e3a03ba1ca 100644
--- a/indra/newview/llagentbenefits.h
+++ b/indra/newview/llagentbenefits.h
@@ -33,6 +33,8 @@
class LLAgentBenefits
{
public:
+ static constexpr S32 MIN_2K_TEXTURE_AREA = 1024 * 1024;
+
LLAgentBenefits();
~LLAgentBenefits();
LOG_CLASS(LLAgentBenefits);
@@ -47,6 +49,7 @@ public:
S32 getPicksLimit() const;
S32 getSoundUploadCost() const;
S32 getTextureUploadCost() const;
+ S32 get2KTextureUploadCost() const;
bool findUploadCost(LLAssetType::EType& asset_type, S32& cost) const;
@@ -59,6 +62,7 @@ private:
S32 m_picks_limit;
S32 m_sound_upload_cost;
S32 m_texture_upload_cost;
+ S32 m_2k_texture_upload_cost;
bool m_initalized;
};