summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-05-26 16:46:55 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-05-26 16:46:55 +0100
commitd0a6165713aa94654f7948151c6fbbe0a7d315f2 (patch)
tree6e841a649e2ef4432a98d2575acec1fb9a675c2d /indra/newview
parent69480a5d25cc949e93bac591aa3bb397910f1cc0 (diff)
EXT-7479 FIXED only bumpmaps of type Brightness or Darkness load on 2.0.2 (205107)
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lldrawpoolbump.cpp2
-rw-r--r--indra/newview/llviewercontrol.cpp7
2 files changed, 4 insertions, 5 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp
index eefb93dc0c..4963b95046 100644
--- a/indra/newview/lldrawpoolbump.cpp
+++ b/indra/newview/lldrawpoolbump.cpp
@@ -82,7 +82,7 @@ static S32 bump_channel = -1;
// static
void LLStandardBumpmap::init()
{
- // do nothing
+ LLStandardBumpmap::restoreGL();
}
// static
diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp
index c940437929..2144ab1489 100644
--- a/indra/newview/llviewercontrol.cpp
+++ b/indra/newview/llviewercontrol.cpp
@@ -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;