merge from viewer-public
commit
7b5be21bfb
|
|
@ -326,7 +326,7 @@ BOOL LLTexLayerSetBuffer::isReadyToUpload() const
|
|||
{
|
||||
// The timeout period increases exponentially between every lowres upload in order to prevent
|
||||
// spamming the server with frequent uploads.
|
||||
const U32 texture_timeout_threshold = texture_timeout*pow((F32)2.0,(F32)mNumLowresUploads);
|
||||
const U32 texture_timeout_threshold = texture_timeout*(1 << mNumLowresUploads);
|
||||
|
||||
// If we hit our timeout and have textures available at even lower resolution, then upload.
|
||||
const BOOL is_upload_textures_timeout = mNeedsUploadTimer.getElapsedTimeF32() >= texture_timeout_threshold;
|
||||
|
|
|
|||
|
|
@ -322,9 +322,9 @@ protected:
|
|||
BOOL loadImageRaw(const std::string& file_name, LLImageRaw* image_raw);
|
||||
private:
|
||||
LLStringTable mImageNames;
|
||||
typedef std::map<const char*, LLPointer<LLViewerTexture>> texture_map_t;
|
||||
typedef std::map<const char*, LLPointer<LLViewerTexture> > texture_map_t;
|
||||
texture_map_t mStaticImageList;
|
||||
typedef std::map<const char*, LLPointer<LLImageTGA>> image_tga_map_t;
|
||||
typedef std::map<const char*, LLPointer<LLImageTGA> > image_tga_map_t;
|
||||
image_tga_map_t mStaticImageListTGA;
|
||||
S32 mGLBytes;
|
||||
S32 mTGABytes;
|
||||
|
|
|
|||
Loading…
Reference in New Issue