summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-09-25 20:18:59 +0200
committerGuru <alexandrgproductengine@lindenlab.com>2023-09-25 20:23:22 +0200
commit017d9d2affd12000666cd0c3f56d6ebfd8bfa9f9 (patch)
treefd24ba21e87ad6640ebbe077a6e50b79b48fdaaa /indra/newview/llvosky.cpp
parent3ff0cd546ad8990a577b9f82cf3f73be85ed5555 (diff)
SL-20335 Disable ERROR # diffuseColor4fv : ASSERT (shader != NULL)
Diffstat (limited to 'indra/newview/llvosky.cpp')
-rw-r--r--indra/newview/llvosky.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp
index 909588367b..cb2f8b6e18 100644
--- a/indra/newview/llvosky.cpp
+++ b/indra/newview/llvosky.cpp
@@ -767,7 +767,10 @@ bool LLVOSky::updateSky()
mForceUpdate = FALSE;
mForceUpdateThrottle.setTimerExpirySec(UPDATE_EXPRY);
- gPipeline.markRebuild(gSky.mVOGroundp->mDrawable, LLDrawable::REBUILD_ALL, TRUE);
+ if (gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_GROUND))
+ {
+ gPipeline.markRebuild(gSky.mVOGroundp->mDrawable, LLDrawable::REBUILD_ALL, TRUE);
+ }
if (mDrawable.notNull() && mDrawable->getFace(0) && !mDrawable->getFace(0)->getVertexBuffer())
{