summaryrefslogtreecommitdiff
path: root/indra/newview/llviewershadermgr.cpp
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-09-04 12:51:24 -0700
committerBrad Linden <brad@lindenlab.com>2024-09-04 12:51:24 -0700
commit49abe2c8bc23e306d304d02704e2b883648baea6 (patch)
treebb07d3fce7de85e22c4f59abff2ea65d031fcd69 /indra/newview/llviewershadermgr.cpp
parentc2724537adab9d31c23d33e36002772a9c56f4c3 (diff)
parentd5446b3bcd34ad63b1d120f34c2a4d234262fd38 (diff)
Merge remote-tracking branch 'origin/release/2024.08-DeltaFPS' into develop
Diffstat (limited to 'indra/newview/llviewershadermgr.cpp')
-rw-r--r--indra/newview/llviewershadermgr.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp
index c422e1d3ae..a446be8b58 100644
--- a/indra/newview/llviewershadermgr.cpp
+++ b/indra/newview/llviewershadermgr.cpp
@@ -3156,7 +3156,14 @@ bool LLViewerShaderMgr::loadShadersInterface()
const U32 value_range = (1 << bit_depth) - 1;
shader->addPermutation("TERRAIN_PAINT_PRECISION", llformat("%d", value_range));
success = success && shader->createShader();
- llassert(success);
+ //llassert(success);
+ if (!success)
+ {
+ LL_WARNS() << "Failed to create shader '" << shader->mName << "', disabling!" << LL_ENDL;
+ gSavedSettings.setBOOL("RenderCanUseTerrainBakeShaders", false);
+ // continue as if this shader never happened
+ success = true;
+ }
}
if (success)