summaryrefslogtreecommitdiff
path: root/indra/newview/llsky.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-07-15 17:56:30 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-07-15 17:56:30 +0300
commit8d77d51e636f5384b0b024350a0a219e041b5446 (patch)
tree5411da7404f93816452addc81f9a9715edd2ad1b /indra/newview/llsky.cpp
parentf486bdbb48dda1364d71b8d80cc3c837efb96284 (diff)
SL-10908 Safeguards and potential crash fix
Diffstat (limited to 'indra/newview/llsky.cpp')
-rw-r--r--indra/newview/llsky.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llsky.cpp b/indra/newview/llsky.cpp
index 3ef89ba920..5e2442798b 100644
--- a/indra/newview/llsky.cpp
+++ b/indra/newview/llsky.cpp
@@ -119,7 +119,7 @@ void LLSky::restoreGL()
void LLSky::resetVertexBuffers()
{
- if (gSky.mVOSkyp.notNull())
+ if (gSky.mVOSkyp.notNull() && gSky.mVOGroundp.notNull())
{
gPipeline.resetVertexBuffers(gSky.mVOSkyp->mDrawable);
gPipeline.resetVertexBuffers(gSky.mVOGroundp->mDrawable);