FIRE-34277 - particles are refusing to rez

Oddly, calling getPixelArea() before calcPixelArea() is correct. This makes no sense but things break if we don't!
meow-7.2.2
Beq 2024-07-29 21:30:58 +01:00
parent a8be72c2c3
commit ff891ca38d
1 changed files with 1 additions and 1 deletions

View File

@ -915,13 +915,13 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag
if (face && face->getViewerObject() && face->getTextureEntry())
{
F32 vsize = face->getPixelArea();
// <FS:Beq> Fix Blurry textures and use importance weight
F32 radius;
F32 cos_angle_to_view_dir;
BOOL in_frustum = face->calcPixelArea(cos_angle_to_view_dir, radius);
static LLCachedControl<F32> bias_unimportant_threshold(gSavedSettings, "TextureBiasUnimportantFactor", 0.25f);
// </FS:Beq>
F32 vsize = face->getPixelArea();
// scale desired texture resolution higher or lower depending on texture scale
const LLTextureEntry* te = face->getTextureEntry();