EXT-7479 FIXED only bumpmaps of type Brightness or Darkness load on 2.0.2 (205107)
parent
12cf211241
commit
94bddd2b44
|
|
@ -82,7 +82,7 @@ static S32 bump_channel = -1;
|
|||
// static
|
||||
void LLStandardBumpmap::init()
|
||||
{
|
||||
// do nothing
|
||||
LLStandardBumpmap::restoreGL();
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
|
|
@ -118,10 +118,9 @@ static bool handleTerrainDetailChanged(const LLSD& newvalue)
|
|||
|
||||
static bool handleSetShaderChanged(const LLSD& newvalue)
|
||||
{
|
||||
// changing shader level may invalidate existing cached bump maps, as the shader type determines the format of the bump map it expects - clear the bump cache
|
||||
gBumpImageList.clear();
|
||||
LLStandardBumpmap::clear();
|
||||
LLStandardBumpmap::addstandard();
|
||||
// changing shader level may invalidate existing cached bump maps, as the shader type determines the format of the bump map it expects - clear and repopulate the bump cache
|
||||
gBumpImageList.destroyGL();
|
||||
gBumpImageList.restoreGL();
|
||||
|
||||
LLViewerShaderMgr::instance()->setShaders();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue