summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogue <logue@hotmail.co.jp>2023-06-02 07:06:24 +0900
committerLogue <logue@hotmail.co.jp>2023-06-02 07:06:24 +0900
commitcca49e4d637e4f7e513647b79bef9a5c5b8820dc (patch)
tree0213cd95e653d501dfd0c87cc60b5ba8b95b07df
parent6f58bc78fe2c8667e1f5ac40a309620fd98a5f36 (diff)
parentd134d155e2ddaf07ba1cdac50c1e31781e451ee5 (diff)
Merge branch 'DRTVWR-580-maint-T' of github.com:secondlife/viewer into DRTVWR-580-maint-T
-rw-r--r--indra/llui/lltextbox.cpp3
-rw-r--r--indra/newview/lldrawpool.cpp12
-rw-r--r--indra/newview/lldrawpoolalpha.cpp4
3 files changed, 10 insertions, 9 deletions
diff --git a/indra/llui/lltextbox.cpp b/indra/llui/lltextbox.cpp
index c567451973..521dabf9d4 100644
--- a/indra/llui/lltextbox.cpp
+++ b/indra/llui/lltextbox.cpp
@@ -171,7 +171,8 @@ void LLTextBox::reshapeToFitText(BOOL called_from_parent)
S32 width = getTextPixelWidth();
S32 height = getTextPixelHeight();
- reshape( width + 2 * mHPad, height + 2 * mVPad, called_from_parent );
+ //consider investigating reflow() to find missing width pixel (see SL-17045 changes)
+ reshape( width + 2 * mHPad + 1, height + 2 * mVPad, called_from_parent );
}
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp
index 594cfe513d..3fd15d36df 100644
--- a/indra/newview/lldrawpool.cpp
+++ b/indra/newview/lldrawpool.cpp
@@ -402,7 +402,7 @@ void LLRenderPass::renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL t
if(pparams->mFace)
{
LLViewerObject* vobj = pparams->mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments(vobj, false, &ratPtr);
}
@@ -429,7 +429,7 @@ void LLRenderPass::renderRiggedGroup(LLSpatialGroup* group, U32 type, U32 mask,
if(pparams->mFace)
{
LLViewerObject* vobj = pparams->mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, true ,&ratPtr);
}
@@ -459,7 +459,7 @@ void LLRenderPass::pushBatches(U32 type, U32 mask, BOOL texture, BOOL batch_text
if(pparams->mFace)
{
LLViewerObject* vobj = pparams->mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, false, &ratPtr);
}
@@ -484,7 +484,7 @@ void LLRenderPass::pushRiggedBatches(U32 type, U32 mask, BOOL texture, BOOL batc
if(pparams->mFace)
{
LLViewerObject* vobj = pparams->mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, true, &ratPtr);
}
@@ -514,7 +514,7 @@ void LLRenderPass::pushMaskBatches(U32 type, U32 mask, BOOL texture, BOOL batch_
if((*pparams).mFace)
{
LLViewerObject* vobj = (*pparams).mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, false, &ratPtr);
}
@@ -539,7 +539,7 @@ void LLRenderPass::pushRiggedMaskBatches(U32 type, U32 mask, BOOL texture, BOOL
if((*pparams).mFace)
{
LLViewerObject* vobj = (*pparams).mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, true, &ratPtr);
}
diff --git a/indra/newview/lldrawpoolalpha.cpp b/indra/newview/lldrawpoolalpha.cpp
index edd0afe357..ab1ac7e30c 100644
--- a/indra/newview/lldrawpoolalpha.cpp
+++ b/indra/newview/lldrawpoolalpha.cpp
@@ -349,7 +349,7 @@ void LLDrawPoolAlpha::renderAlphaHighlight(U32 mask)
if(params.mFace)
{
LLViewerObject* vobj = (LLViewerObject *)params.mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, params.mFace->isState(LLFace::RIGGED), &ratPtr );
}
@@ -622,7 +622,7 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, bool depth_only, bool rigged)
{
LLViewerObject* vobj = (LLViewerObject *)params.mFace->getViewerObject();
- if(vobj->isAttachment())
+ if(vobj && vobj->isAttachment())
{
trackAttachments( vobj, params.mFace->isState(LLFace::RIGGED), &ratPtr );
}