Fixed bug not detecting unc pathes in osgDB::isAbsolutePath()
This commit is contained in:
committed by
Robert Osfield
parent
68baf15806
commit
c31baa96de
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user