SL-9685
Make sure legacy opaque water texture ID is assigned so it can be bound for lowest graphics use.meow-7.2.2
parent
08dd04aa98
commit
862b8f72dc
|
|
@ -76,10 +76,10 @@ void LLDrawPoolWater::setTransparentTextures(const LLUUID& transparentTextureId,
|
|||
mWaterImagep[1]->addTextureStats(1024.f*1024.f);
|
||||
}
|
||||
|
||||
void LLDrawPoolWater::setOpaqueTexture()
|
||||
void LLDrawPoolWater::setOpaqueTexture(const LLUUID& opaqueTextureId)
|
||||
{
|
||||
LLSettingsWater::ptr_t pwater = LLEnvironment::instance().getCurrentWater();
|
||||
mOpaqueWaterImagep = LLViewerTextureManager::getFetchedTexture(pwater->GetDefaultOpaqueTextureAssetId());
|
||||
mOpaqueWaterImagep = LLViewerTextureManager::getFetchedTexture(opaqueTextureId);
|
||||
mOpaqueWaterImagep->addTextureStats(1024.f*1024.f);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ public:
|
|||
void shade();
|
||||
|
||||
void setTransparentTextures(const LLUUID& transparentTextureId, const LLUUID& nextTransparentTextureId);
|
||||
void setOpaqueTexture();
|
||||
void setOpaqueTexture(const LLUUID& opaqueTextureId);
|
||||
void setNormalMaps(const LLUUID& normalMapId, const LLUUID& nextNormalMapId);
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -851,6 +851,7 @@ void LLSettingsVOWater::updateSettings()
|
|||
if (pwaterpool)
|
||||
{
|
||||
pwaterpool->setTransparentTextures(getTransparentTextureID(), getNextTransparentTextureID());
|
||||
pwaterpool->setOpaqueTexture(GetDefaultOpaqueTextureAssetId());
|
||||
pwaterpool->setNormalMaps(getNormalMapID(), getNextNormalMapID());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue