viewer#2411 Cleanup #2
parent
4cc0edb189
commit
2fc8d5ff3c
|
|
@ -1531,6 +1531,10 @@ void LLRender::clearErrors()
|
|||
|
||||
void LLRender::beginList(std::list<LLVertexBufferData> *list)
|
||||
{
|
||||
if (sBufferDataList)
|
||||
{
|
||||
LL_ERRS() << "beginList called while another list is open." << LL_ENDL;
|
||||
}
|
||||
llassert(LLGLSLShader::sCurBoundShaderPtr == &gUIProgram);
|
||||
flush();
|
||||
sBufferDataList = list;
|
||||
|
|
@ -1545,7 +1549,7 @@ void LLRender::endList()
|
|||
}
|
||||
else
|
||||
{
|
||||
llassert(false); // something failed to provide a list or closed it twice
|
||||
llassert(false); // endList called without an open list
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -427,18 +427,6 @@ void LLButton::onVisibilityChange(bool new_visibility)
|
|||
return LLUICtrl::onVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
void LLButton::reshape(S32 width, S32 height, bool called_from_parent)
|
||||
{
|
||||
S32 delta_width = width - getRect().getWidth();
|
||||
S32 delta_height = height - getRect().getHeight();
|
||||
|
||||
if (delta_width || delta_height || sForceReshape)
|
||||
{
|
||||
LLUICtrl::reshape(width, height, called_from_parent);
|
||||
mFontBuffer.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void LLButton::dirtyRect()
|
||||
{
|
||||
LLUICtrl::dirtyRect();
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ public:
|
|||
/*virtual*/ bool postBuild() override;
|
||||
|
||||
void onVisibilityChange(bool visible) override;
|
||||
void reshape(S32 width, S32 height, bool called_from_parent = true) override;
|
||||
void dirtyRect() override;
|
||||
|
||||
virtual void onMouseLeave(S32 x, S32 y, MASK mask) override;
|
||||
|
|
|
|||
Loading…
Reference in New Issue