Removed dead code related to 'RenderForSelect'.
This commit is contained in:
@@ -68,7 +68,6 @@ extern PFNGLWEIGHTPOINTERARBPROC glWeightPointerARB;
|
||||
extern PFNGLWEIGHTFVARBPROC glWeightfvARB;
|
||||
extern PFNGLVERTEXBLENDARBPROC glVertexBlendARB;
|
||||
#endif
|
||||
extern BOOL gRenderForSelect;
|
||||
|
||||
static LLPointer<LLVertexBuffer> sRenderBuffer = NULL;
|
||||
static const U32 sRenderMask = LLVertexBuffer::MAP_VERTEX |
|
||||
@@ -533,17 +532,14 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
|
||||
//----------------------------------------------------------------
|
||||
// setup current color
|
||||
//----------------------------------------------------------------
|
||||
if (!gRenderForSelect)
|
||||
{
|
||||
if (is_dummy)
|
||||
glColor4fv(LLVOAvatar::getDummyColor().mV);
|
||||
else
|
||||
glColor4fv(mColor.mV);
|
||||
}
|
||||
if (is_dummy)
|
||||
glColor4fv(LLVOAvatar::getDummyColor().mV);
|
||||
else
|
||||
glColor4fv(mColor.mV);
|
||||
|
||||
stop_glerror();
|
||||
|
||||
LLGLSSpecular specular(LLColor4(1.f,1.f,1.f,1.f), (mFace->getPool()->getVertexShaderLevel() > 0 && !gRenderForSelect) ? 0.f : mShiny);
|
||||
LLGLSSpecular specular(LLColor4(1.f,1.f,1.f,1.f), (mFace->getPool()->getVertexShaderLevel() > 0) ? 0.f : mShiny);
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// setup current texture
|
||||
@@ -598,19 +594,6 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
|
||||
gGL.getTexUnit(diffuse_channel)->bind(LLViewerTextureManager::getFetchedTexture(IMG_DEFAULT_AVATAR));
|
||||
}
|
||||
|
||||
if (gRenderForSelect)
|
||||
{
|
||||
if (isTransparent())
|
||||
{
|
||||
gGL.getTexUnit(diffuse_channel)->setTextureColorBlend(LLTexUnit::TBO_REPLACE, LLTexUnit::TBS_PREV_COLOR);
|
||||
gGL.getTexUnit(diffuse_channel)->setTextureAlphaBlend(LLTexUnit::TBO_MULT, LLTexUnit::TBS_TEX_ALPHA, LLTexUnit::TBS_CONST_ALPHA);
|
||||
}
|
||||
else
|
||||
{
|
||||
gGL.getTexUnit(diffuse_channel)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
}
|
||||
}
|
||||
|
||||
mFace->getVertexBuffer()->setBuffer(sRenderMask);
|
||||
|
||||
U32 start = mMesh->mFaceVertexOffset;
|
||||
|
||||
Reference in New Issue
Block a user