diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-09-07 17:46:04 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-09-07 17:46:04 +0800 |
commit | a742349cabd97b42e61e1b445f79840407cb3479 (patch) | |
tree | 6d6f043f53cd3d7b9bf004e543932a86cb89ad7c /indra/newview/llviewershadermgr.cpp | |
parent | 895e2decd591ce8ab3cfcdce93c8b10447eedbee (diff) | |
parent | 1f754e50908ba325c132b8d83383f7f0dbbdf793 (diff) |
Merge remote-tracking branch 'secondlife/release/2024.08-DeltaFPS' into 2024.08-DeltaFPS
Diffstat (limited to 'indra/newview/llviewershadermgr.cpp')
-rw-r--r-- | indra/newview/llviewershadermgr.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp index c98bd9b7e2..6b0fc4f5e8 100644 --- a/indra/newview/llviewershadermgr.cpp +++ b/indra/newview/llviewershadermgr.cpp @@ -2993,7 +2993,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) |