Commit 719923fd authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Cache parcel overlay color lookup in statics

parent c0e035a1
......@@ -340,12 +340,12 @@ void LLViewerParcelOverlay::updateOverlayTexture()
{
return;
}
const LLColor4U avail = LLUIColorTable::instance().getColor("PropertyColorAvail").get();
const LLColor4U owned = LLUIColorTable::instance().getColor("PropertyColorOther").get();
const LLColor4U group = LLUIColorTable::instance().getColor("PropertyColorGroup").get();
const LLColor4U self = LLUIColorTable::instance().getColor("PropertyColorSelf").get();
const LLColor4U for_sale = LLUIColorTable::instance().getColor("PropertyColorForSale").get();
const LLColor4U auction = LLUIColorTable::instance().getColor("PropertyColorAuction").get();
static const LLColor4U avail = LLUIColorTable::instance().getColor("PropertyColorAvail").get();
static const LLColor4U owned = LLUIColorTable::instance().getColor("PropertyColorOther").get();
static const LLColor4U group = LLUIColorTable::instance().getColor("PropertyColorGroup").get();
static const LLColor4U self = LLUIColorTable::instance().getColor("PropertyColorSelf").get();
static const LLColor4U for_sale = LLUIColorTable::instance().getColor("PropertyColorForSale").get();
static const LLColor4U auction = LLUIColorTable::instance().getColor("PropertyColorAuction").get();
// Create the base texture.
U8 *raw = mImageRaw->getData();
......@@ -454,11 +454,11 @@ void LLViewerParcelOverlay::updatePropertyLines()
S32 row, col;
const LLColor4U self_coloru = LLUIColorTable::instance().getColor("PropertyColorSelf").get();
const LLColor4U other_coloru = LLUIColorTable::instance().getColor("PropertyColorOther").get();
const LLColor4U group_coloru = LLUIColorTable::instance().getColor("PropertyColorGroup").get();
const LLColor4U for_sale_coloru = LLUIColorTable::instance().getColor("PropertyColorForSale").get();
const LLColor4U auction_coloru = LLUIColorTable::instance().getColor("PropertyColorAuction").get();
static const LLColor4U self_coloru = LLUIColorTable::instance().getColor("PropertyColorSelf").get();
static const LLColor4U other_coloru = LLUIColorTable::instance().getColor("PropertyColorOther").get();
static const LLColor4U group_coloru = LLUIColorTable::instance().getColor("PropertyColorGroup").get();
static const LLColor4U for_sale_coloru = LLUIColorTable::instance().getColor("PropertyColorForSale").get();
static const LLColor4U auction_coloru = LLUIColorTable::instance().getColor("PropertyColorAuction").get();
// Build into dynamic arrays, then copy into static arrays.
std::vector<LLVector3> new_vertex_array;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment