diff options
author | Dave Parks <davep@lindenlab.com> | 2024-09-10 15:54:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 15:54:01 -0500 |
commit | 94453aecc352613f52fec0e59b23230314cffb32 (patch) | |
tree | 3d8f677cfb61f716b95fbdde7518e94b357dda2b /indra/newview/llviewerregion.cpp | |
parent | 1f754e50908ba325c132b8d83383f7f0dbbdf793 (diff) |
#2434 Intel HD4000 compatibility pass (#2541)
* #2434 Intel HD4000 compatibility pass
* Fixes crash on old drivers when loading shaders
* Fixes 30 second hang on startup
* Fixes occasional dev build crash in LLWearableList
---------
Co-authored-by: Brad Linden <brad@lindenlab.com>
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-x | indra/newview/llviewerregion.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 115db57a06..a619f77064 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -2488,7 +2488,16 @@ void LLViewerRegion::setSimulatorFeatures(const LLSD& sim_features) if (features.has("GLTFEnabled")) { bool enabled = features["GLTFEnabled"]; - gSavedSettings.setBOOL("GLTFEnabled", enabled); + + // call setShaders the first time GLTFEnabled is received as true (causes GLTF specific shaders to be loaded) + if (enabled != gSavedSettings.getBOOL("GLTFEnabled")) + { + gSavedSettings.setBOOL("GLTFEnabled", enabled); + if (enabled) + { + LLViewerShaderMgr::instance()->setShaders(); + } + } } else { |