diff options
author | Dave Parks <davep@lindenlab.com> | 2011-03-03 16:14:52 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-03-03 16:14:52 -0600 |
commit | 162d467b4a8ca1dae6b16ece1728873d43a287ac (patch) | |
tree | f0ef60a4bdae99efb6b829b51841993bc3f6fa01 /indra/newview/pipeline.cpp | |
parent | fcb205131ccc02b2b50e79ad274ed4ef4fec0330 (diff) |
SH-1085 Fix for crash when unchecking "mirror." Basically got LLFace to be paranoid about who gets to touch its LLVertexBuffer members.
Reviewed by Nyx.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-x | indra/newview/pipeline.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index b29e32f1d8..73cd60e2f5 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -5786,8 +5786,7 @@ void LLPipeline::resetVertexBuffers(LLDrawable* drawable) for (S32 i = 0; i < drawable->getNumFaces(); i++) { LLFace* facep = drawable->getFace(i); - facep->mVertexBuffer = NULL; - facep->mLastVertexBuffer = NULL; + facep->clearVertexBuffer(); } } |