From Vincent Bourdier, addition of out of memory read result.

This commit is contained in:
Robert Osfield
2010-03-10 14:28:18 +00:00
parent e082b01f26
commit 950d282f55
3 changed files with 6 additions and 2 deletions

View File

@@ -68,7 +68,8 @@ Node* osgDB::readNodeFile(const std::string& filename,const Options* options)
{
ReaderWriter::ReadResult rr = Registry::instance()->readNode(filename,options);
if (rr.validNode()) return rr.takeNode();
if (rr.error()) notify(WARN) << rr.message() << std::endl;
if (rr.error()) OSG_WARN << rr.message() << std::endl;
if (rr.notEnoughMemory()) OSG_INFO << "Not enought memory to load file "<<filename << std::endl;
return NULL;
}