Trival V3 llmath merge.
This commit is contained in:
@@ -1440,6 +1440,8 @@ void LLRender::loadIdentity()
|
||||
flush();
|
||||
|
||||
{
|
||||
llassert_always(mMatrixMode < NUM_MATRIX_MODES) ;
|
||||
|
||||
mMatrix[mMatrixMode][mMatIdx[mMatrixMode]].make_identity();
|
||||
mMatHash[mMatrixMode]++;
|
||||
}
|
||||
@@ -1687,7 +1689,7 @@ void LLRender::blendFunc(eBlendFactor color_sfactor, eBlendFactor color_dfactor,
|
||||
|
||||
LLTexUnit* LLRender::getTexUnit(U32 index)
|
||||
{
|
||||
if ((index >= 0) && (index < mTexUnits.size()))
|
||||
if (index < mTexUnits.size())
|
||||
{
|
||||
return mTexUnits[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user