Fixed nullptr call on shutdown.

This commit is contained in:
Shyotl
2011-06-13 23:20:45 -05:00
parent ded24bfe2d
commit 43fd687b7c

View File

@@ -307,6 +307,11 @@ bool LLTexUnit::bind(LLCubeMap* cubeMap)
return false;
}
if (cubeMap->mImages[0].isNull())
{
llwarns << "NULL LLTexUnit::bind cubeMap->mImages[0]" << llendl;
return false;
}
if (mCurrTexture != cubeMap->mImages[0]->getTexName())
{
if (gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps)