diff options
author | Dave Parks <davep@lindenlab.com> | 2024-08-27 11:53:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 09:53:54 -0700 |
commit | 8406d1052c70d1d9f964ec86f6f5468aa9f57bb1 (patch) | |
tree | 646b8f456833ea3c8f911449c1101296d239c696 /indra/newview | |
parent | 50dc4cbdf9640601ca164086bee4f3a7b91868ca (diff) |
#2428 Fix for crash when applying PBR material (#2430)
Also attempt to fix some occasional bad texture memory tracking.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llface.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index a8001699fe..9e504402c8 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -577,8 +577,11 @@ void LLFace::renderSelected(LLViewerTexture *imagep, const LLColor4& color) } } // Draw the selection marker using the correctly chosen vertex buffer - vertex_buffer->setBuffer(); - vertex_buffer->draw(LLRender::TRIANGLES, mIndicesCount, mIndicesIndex); + if (vertex_buffer) + { + vertex_buffer->setBuffer(); + vertex_buffer->draw(LLRender::TRIANGLES, mIndicesCount, mIndicesIndex); + } } gGL.popMatrix(); |