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:
parent
d16819a5b0
commit
7fe5351f55
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue