Fixing unused variables for mac build after SL-19172 work
parent
cdc04d2041
commit
0e178e1256
|
|
@ -101,8 +101,6 @@ F32 LLViewerTexture::sCurrentTime = 0.0f;
|
|||
|
||||
LLViewerTexture::EDebugTexels LLViewerTexture::sDebugTexelsMode = LLViewerTexture::DEBUG_TEXELS_OFF;
|
||||
|
||||
const F32 desired_discard_bias_min = -2.0f; // -max number of levels to improve image quality by
|
||||
const F32 desired_discard_bias_max = (F32)MAX_DISCARD_LEVEL; // max number of levels to reduce image quality by
|
||||
const F64 log_2 = log(2.0);
|
||||
|
||||
#if ADDRESS_SIZE == 32
|
||||
|
|
@ -469,8 +467,6 @@ void LLViewerTexture::initClass()
|
|||
}
|
||||
|
||||
// tuning params
|
||||
const F32 discard_bias_delta = .25f;
|
||||
const F32 discard_delta_time = 0.5f;
|
||||
const F32 GPU_MEMORY_CHECK_WAIT_TIME = 1.0f;
|
||||
// non-const (used externally
|
||||
F32 texmem_lower_bound_scale = 0.85f;
|
||||
|
|
|
|||
|
|
@ -893,10 +893,6 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag
|
|||
|
||||
if (face && face->getViewerObject() && face->getTextureEntry())
|
||||
{
|
||||
F32 radius;
|
||||
F32 cos_angle_to_view_dir;
|
||||
BOOL in_frustum = face->calcPixelArea(cos_angle_to_view_dir, radius);
|
||||
|
||||
F32 vsize = face->getPixelArea();
|
||||
|
||||
#if LL_DARWIN
|
||||
|
|
@ -905,6 +901,9 @@ void LLViewerTextureList::updateImageDecodePriority(LLViewerFetchedTexture* imag
|
|||
vsize /= LLViewerTexture::sDesiredDiscardBias;
|
||||
vsize /= llmax(1.f, (LLViewerTexture::sDesiredDiscardBias-1.f) * (1.f + face->getDrawable()->mDistanceWRTCamera * bias_distance_scale));
|
||||
|
||||
F32 radius;
|
||||
F32 cos_angle_to_view_dir;
|
||||
BOOL in_frustum = face->calcPixelArea(cos_angle_to_view_dir, radius);
|
||||
if (!in_frustum || !face->getDrawable()->isVisible())
|
||||
{ // further reduce by discard bias when off screen or occluded
|
||||
vsize /= LLViewerTexture::sDesiredDiscardBias;
|
||||
|
|
|
|||
Loading…
Reference in New Issue