mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-03 07:17:59 +03: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());
|
filePath = std::filesystem::relative(filename, osgDB::getCurrentWorkingDirectory());
|
||||||
try
|
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)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue