Fixed bug not detecting unc pathes in osgDB::isAbsolutePath()
This commit is contained in:
parent
af9d8889c8
commit
e536d8e601
@ -440,6 +440,7 @@ bool osgDB::isAbsolutePath(const std::string& path) {
|
||||
if (path[0] == '/') return true;
|
||||
// Now test for Windows root
|
||||
if (path.length()<2) return false;
|
||||
if (path[0] == '\\' && path[1] == '\\') return true;
|
||||
return path[1] == ':'; // We should check that path[0] is a letter, but as ':' is invalid in paths in other cases, that's not a problem.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user