Fixed warning about max texture size being smaller than the currently used texture pool size

This commit is contained in:
Robert Osfield
2009-09-27 15:21:05 +00:00
parent 1fce3c0ad1
commit 2eff3daaab

View File

@@ -624,9 +624,9 @@ void Texture::TextureObjectManager::setMaxTexturePoolSize(unsigned int size)
{
if (_maxTexturePoolSize == size) return;
if (size>_currTexturePoolSize)
if (size<_currTexturePoolSize)
{
osg::notify(osg::NOTICE)<<"Warning: new MaxTexturePoolSize is smaller than current TexturePoolSize"<<std::endl;
osg::notify(osg::NOTICE)<<"Warning: new MaxTexturePoolSize="<<size<<" is smaller than current TexturePoolSize="<<_currTexturePoolSize<<std::endl;
}
_maxTexturePoolSize = size;