A few nullchecks, and removal of pointless uint < 0 bounds checks.
This commit is contained in:
@@ -245,7 +245,8 @@ BOOL LLVisualParamHint::render()
|
||||
|
||||
LLViewerCamera::getInstance()->setPerspective(FALSE, mOrigin.mX, mOrigin.mY, mFullWidth, mFullHeight, FALSE);
|
||||
|
||||
if (gAgentAvatarp->mDrawable.notNull())
|
||||
if (gAgentAvatarp->mDrawable.notNull() &&
|
||||
gAgentAvatarp->mDrawable->getFace(0))
|
||||
{
|
||||
LLDrawPoolAvatar *avatarPoolp = (LLDrawPoolAvatar *)gAgentAvatarp->mDrawable->getFace(0)->getPool();
|
||||
LLGLDepthTest gls_depth(GL_TRUE, GL_TRUE);
|
||||
|
||||
Reference in New Issue
Block a user