diff options
author | Rye <rye@lindenlab.com> | 2025-02-03 14:43:56 -0500 |
---|---|---|
committer | Rye <rye@lindenlab.com> | 2025-02-03 14:49:14 -0500 |
commit | 81a2813bf50c7a75acaa48c7398ce926784300c6 (patch) | |
tree | b8a17d92c41d2d72358c265af28783292684ff3e /indra/newview/llvovolume.cpp | |
parent | b3fb4183e23dc39dd92b2e6e54d7f4b4cce40145 (diff) |
Fix media failing to function on PBR materials (#3445)
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index c1079ba12b..4dba930ed5 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5750,7 +5750,12 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) if (is_pbr) { // tell texture streaming system to ignore blinn-phong textures - facep->setTexture(LLRender::DIFFUSE_MAP, nullptr); + // except the special case of the diffuse map containing a + // media texture that will be reused for swapping on to the pbr face + if (!facep->hasMedia()) + { + facep->setTexture(LLRender::DIFFUSE_MAP, nullptr); + } facep->setTexture(LLRender::NORMAL_MAP, nullptr); facep->setTexture(LLRender::SPECULAR_MAP, nullptr); |