mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use normalized path in ImageManager
This commit is contained in:
parent
b9cb028809
commit
1fd6ac6438
16 changed files with 74 additions and 56 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue