Disable stencil test for various HUD-related render operations
parent
6c6d021ca0
commit
1d6fdc9356
|
|
@ -564,6 +564,8 @@ void LLHUDEffectLookAt::render()
|
|||
if ((hide_own || is_private) && ((LLVOAvatar*)(LLViewerObject*)mSourceObject)->isSelf())
|
||||
return;
|
||||
|
||||
LLGLDisable gls_stencil(GL_STENCIL_TEST); // <FS:Ansariel> HUD items hidden by new mesh selection outlining
|
||||
|
||||
LLVector3 target = mTargetPos + ((LLVOAvatar*)(LLViewerObject*)mSourceObject)->mHeadp->getWorldPosition();
|
||||
LLColor3 lookAtColor = (*mAttentions)[mTargetType].mColor;
|
||||
|
||||
|
|
|
|||
|
|
@ -346,6 +346,7 @@ void LLHUDEffectPointAt::render()
|
|||
update();
|
||||
if (sDebugPointAt && mTargetType != POINTAT_TARGET_NONE)
|
||||
{
|
||||
LLGLDisable gls_stencil(GL_STENCIL_TEST); // <FS:Ansariel> HUD items hidden by new mesh selection outlining
|
||||
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
|
||||
LLVector3 target = mTargetPos + mSourceObject->getRenderPosition();
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ void LLHUDIcon::renderIcon(BOOL for_select)
|
|||
{
|
||||
LLGLSUIDefault texture_state;
|
||||
LLGLDepthTest gls_depth(GL_TRUE);
|
||||
LLGLDisable gls_stencil(GL_STENCIL_TEST); // <FS:Ansariel> HUD items hidden by new mesh selection outlining
|
||||
if (for_select)
|
||||
{
|
||||
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
|
|
|
|||
|
|
@ -229,6 +229,7 @@ void LLHUDNameTag::render()
|
|||
if (sDisplayText)
|
||||
{
|
||||
LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
|
||||
LLGLDisable gls_stencil(GL_STENCIL_TEST); // <FS:Ansariel> HUD items hidden by new mesh selection outlining
|
||||
renderText(FALSE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ void LLHUDText::render()
|
|||
if (!mOnHUDAttachment && sDisplayText)
|
||||
{
|
||||
LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
|
||||
LLGLDisable gls_stencil(GL_STENCIL_TEST); // <FS:Ansariel> HUD items hidden by new mesh selection outlining
|
||||
renderText();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -356,6 +356,7 @@ void LLVoiceVisualizer::render()
|
|||
//---------------------------------------------------------------
|
||||
LLGLSPipelineAlpha alpha_blend;
|
||||
LLGLDepthTest depth(GL_TRUE, GL_FALSE);
|
||||
LLGLDisable gls_stencil(GL_STENCIL_TEST); // <FS:Ansariel> HUD items hidden by new mesh selection outlining
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// create coordinates of the geometry for the dot
|
||||
|
|
|
|||
Loading…
Reference in New Issue