Fixed bug not detecting unc pathes in osgDB::isAbsolutePath()

This commit is contained in:
Ralf Habacker
2016-05-31 16:14:51 +01:00
committed by Robert Osfield
parent 68baf15806
commit c31baa96de

View File

@@ -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.
}