Use normalized path in ImageManager

This commit is contained in:
elsid 2024-09-15 14:19:32 +02:00
parent b9cb028809
commit 1fd6ac6438
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
16 changed files with 74 additions and 56 deletions

View file

@ -445,7 +445,8 @@ namespace fx
else if (key == "source")
{
expect<Lexer::String>();
auto image = mImageManager.getImage(std::string{ std::get<Lexer::String>(mToken).value }, is3D);
const osg::ref_ptr<osg::Image> image
= mImageManager.getImage(VFS::Path::Normalized(std::get<Lexer::String>(mToken).value), is3D);
if constexpr (is1D)
{
type = Types::SamplerType::Texture_1D;