SL-9991 FIXED Crash in LLViewerLODTexture::processTextureStats()
parent
74d28082b0
commit
f8106e9f3f
|
|
@ -300,8 +300,8 @@ BOOL LLFloaterWorldMap::postBuild()
|
|||
landmark_combo->setTextChangedCallback( boost::bind(&LLFloaterWorldMap::onComboTextEntry, this) );
|
||||
mListLandmarkCombo = dynamic_cast<LLCtrlListInterface *>(landmark_combo);
|
||||
|
||||
mCurZoomVal = log(LLWorldMapView::sMapScale)/log(2.f);
|
||||
getChild<LLUICtrl>("zoom slider")->setValue(LLWorldMapView::sMapScale);
|
||||
mCurZoomVal = log(LLWorldMapView::sMapScale/256.f)/log(2.f);
|
||||
getChild<LLUICtrl>("zoom slider")->setValue(mCurZoomVal);
|
||||
|
||||
setDefaultBtn(NULL);
|
||||
|
||||
|
|
|
|||
|
|
@ -3171,6 +3171,7 @@ void LLViewerLODTexture::processTextureStats()
|
|||
if (mKnownDrawWidth && mKnownDrawHeight)
|
||||
{
|
||||
S32 draw_texels = mKnownDrawWidth * mKnownDrawHeight;
|
||||
draw_texels = llclamp(draw_texels, MIN_IMAGE_AREA, MAX_IMAGE_AREA);
|
||||
|
||||
// Use log_4 because we're in square-pixel space, so an image
|
||||
// with twice the width and twice the height will have mTexelsPerImage
|
||||
|
|
|
|||
Loading…
Reference in New Issue