Linux Build Foxes

This commit is contained in:
Inusaito Sayori
2015-06-19 19:55:56 -04:00
parent 8f2c92d198
commit 990b5f9bb4
5 changed files with 26 additions and 35 deletions

View File

@@ -752,7 +752,11 @@ void LLViewerTexture::addFace(U32 ch, LLFace* facep)
//virtual
void LLViewerTexture::removeFace(U32 ch, LLFace* facep)
{
llassert(ch < LLRender::NUM_TEXTURE_CHANNELS);
if (ch >= LLRender::NUM_TEXTURE_CHANNELS) // Suppress Linux warning, this should NEVER happen!
{
LL_ERRS() << ch << " >= LLRender::NUM_TEXTURE_CHANNELS!!!" << LL_ENDL;
return;
}
if(mNumFaces[ch] > 1)
{