1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 15:09:43 +00:00

Fix compilation error on windows: cannot convert from 'std::filesystem::path'...

This commit is contained in:
Petr Mikheev 2021-12-26 18:04:20 +00:00 committed by Evil Eye
parent d16819a5b0
commit 7fe5351f55

View file

@ -481,7 +481,8 @@ namespace Resource
filePath = std::filesystem::relative(filename, osgDB::getCurrentWorkingDirectory());
try
{
return osgDB::ReaderWriter::ReadResult(mImageManager->getImage(filePath), osgDB::ReaderWriter::ReadResult::FILE_LOADED);
return osgDB::ReaderWriter::ReadResult(mImageManager->getImage(filePath.string()),
osgDB::ReaderWriter::ReadResult::FILE_LOADED);
}
catch (std::exception& e)
{